<controls:SettingsExpander
    x:Class="Pixeval.Controls.Settings.ProxySettingsExpander"
    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:controls2="using:Pixeval.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:fluent="using:FluentIcons.WinUI"
    xmlns:local="using:Pixeval.Controls.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>
    <controls2:EnumComboBox
        ItemsSource="{x:Bind Entry.EnumItems}"
        SelectedEnum="{x:Bind Entry.Value, Mode=TwoWay}"
        Style="{StaticResource SettingsEnumComboBoxStyle}" />
    <controls:SettingsExpander.Items>
        <controls:SettingsCard
            HorizontalContentAlignment="Stretch"
            Description="{x:Bind Entry.DescriptionControl2}"
            Header="{x:Bind Entry.Header2}"
            Tag="{x:Bind Entry.Attribute2}">
            <controls:SettingsCard.HeaderIcon>
                <fluent:SymbolIcon Symbol="{x:Bind Entry.HeaderIcon2}" />
            </controls:SettingsCard.HeaderIcon>
            <TextBox
                MinWidth="200"
                LostFocus="TextBox_OnLostFocus"
                Text="{x:Bind Entry.Proxy, Mode=TwoWay}" />
        </controls:SettingsCard>
    </controls:SettingsExpander.Items>
</controls:SettingsExpander>
