<controls:SettingsExpander
    x:Class="Pixeval.Controls.Settings.TokenizingSettingsExpander"
    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:fluent="using:FluentIcons.WinUI"
    xmlns:local="using:Pixeval.Settings"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Description="{x:Bind Entry.DescriptionControl}"
    Header="{x:Bind Entry.Header}"
    Tag="{x:Bind Entry.Attribute}"
    mc:Ignorable="d">
    <controls:SettingsExpander.HeaderIcon>
        <fluent:SymbolIcon Symbol="{x:Bind Entry.HeaderIcon}" />
    </controls:SettingsExpander.HeaderIcon>
    <controls:SettingsExpander.Items>
        <controls:SettingsCard HorizontalContentAlignment="Stretch" ContentAlignment="Left">
            <controls:TokenizingTextBox
                ItemsSource="{x:Bind Entry.Value, Mode=OneWay}"
                PlaceholderText="{x:Bind Entry.Placeholder}"
                TokenDelimiter=","
                TokenItemAdding="TokenizingTextBox_OnTokenItemAdding" />
        </controls:SettingsCard>
    </controls:SettingsExpander.Items>
</controls:SettingsExpander>
