<UserControl
    x:Class="Pixeval.Controls.DialogContent.TagsEntryEditTagDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:CommunityToolkit.WinUI.Controls"
    xmlns:controls1="using:Pixeval.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:Pixeval.Controls.DialogContent"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <controls:DockPanel HorizontalSpacing="20" VerticalSpacing="20">
        <controls:TokenizingTextBox
            controls:DockPanel.Dock="Bottom"
            ItemsSource="{x:Bind Tags}"
            TokenDelimiter=","
            TokenItemAdding="TokenizingTextBox_OnTokenItemAdding" />
        <controls1:LazyImage
            Width="50"
            Height="50"
            controls:DockPanel.Dock="Left"
            Source="{x:Bind _viewModel.Thumbnail, Mode=OneWay}" />
        <TextBlock
            VerticalAlignment="Center"
            Style="{StaticResource CaptionTextBlockStyle}"
            Text="{x:Bind _viewModel.Name, Mode=OneWay}"
            TextTrimming="CharacterEllipsis"
            TextWrapping="NoWrap" />
    </controls:DockPanel>
</UserControl>
