<?xml version="1.0" encoding="utf-8" ?>
<local:PartitionItemControlBase
    x:Class="BiliCopilot.UI.Controls.Components.PartitionItemControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:BiliCopilot.UI.Controls.Components"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Image
            Width="20"
            Height="20"
            Margin="0,0,12,0"
            VerticalAlignment="Center"
            Source="{x:Bind ViewModel.Logo, Mode=OneWay, Converter={StaticResource BitmapConverter}}"
            Stretch="Uniform"
            Visibility="{x:Bind ViewModel.Logo, Mode=OneWay, Converter={StaticResource ObjectToVisibilityConverter}}" />
        <TextBlock
            Grid.Column="1"
            HorizontalAlignment="Left"
            VerticalAlignment="Center"
            Text="{x:Bind ViewModel.Title, Mode=OneWay}" />
    </Grid>
</local:PartitionItemControlBase>
