<UserControl
    x:Class="Pixeval.Controls.FlyoutContent.BookmarkTagSelector"
    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:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:labs="using:CommunityToolkit.Labs.WinUI"
    xmlns:local="using:Pixeval.Controls.FlyoutContent"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <ScrollView>
        <StackPanel Spacing="5">
            <CheckBox
                x:Name="CheckBox"
                x:Uid="/Misc/BookmarkTagSelectorPrivateCheckBox"
                IsChecked="{x:Bind IsPrivate, Mode=TwoWay}" />
            <labs:TokenView
                x:Name="TokenView"
                ItemsSource="{x:Bind ViewModel.TokenViewSource, Mode=OneWay}"
                SelectionChanged="TokenView_OnSelectionChanged"
                SelectionMode="Multiple" />
            <controls:TokenizingTextBox
                ItemsSource="{x:Bind ViewModel.SelectedTags}"
                TokenDelimiter=","
                TokenItemAdding="TokenizingTextBox_OnTokenItemAdding" />
        </StackPanel>
    </ScrollView>
</UserControl>
