<?xml version="1.0" encoding="utf-8" ?>
<local:MomentCardPresenter
    x:Class="BiliCopilot.UI.Controls.Components.PersonalVideoMomentPresenter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:base="using:Richasy.WinUIKernel.Share.Base"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ext="using:BiliCopilot.UI.Extensions"
    xmlns:local="using:BiliCopilot.UI.Controls.Components"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Padding="12" RowSpacing="12">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock
            Foreground="{ThemeResource TextFillColorTertiaryBrush}"
            MaxLines="1"
            Style="{StaticResource CaptionTextBlockStyle}"
            Text="{x:Bind ViewModel.Tip, Mode=OneWay}"
            TextTrimming="CharacterEllipsis" />
        <local:VideoCoverImage
            Grid.Row="1"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch"
            CornerRadius="{StaticResource ControlCornerRadius}"
            DecodeHeight="280"
            DecodeWidth="380"
            Source="{x:Bind ViewModel.VideoCover, Mode=OneWay}" />
        <base:TrimTextBlock
            Grid.Row="2"
            HorizontalAlignment="Left"
            FontSize="13"
            MaxLines="1"
            Text="{x:Bind ViewModel.VideoTitle, Mode=OneWay}" />
        <local:MomentItemOperationPanel Grid.Row="3" ViewModel="{x:Bind ViewModel, Mode=OneWay}" />
    </Grid>
</local:MomentCardPresenter>
