<controls:SettingsCard
    x:Class="Pixeval.Controls.Settings.DateWithSwitchSettingsCard"
    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:SettingsCard.HeaderIcon>
        <fluent:SymbolIcon Symbol="{x:Bind Entry.HeaderIcon}" />
    </controls:SettingsCard.HeaderIcon>
    <Grid ColumnSpacing="10">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <ToggleSwitch Grid.Column="0" IsOn="{x:Bind Entry.Value, Mode=TwoWay}" />
        <CalendarDatePicker
            Grid.Column="1"
            MinWidth="150"
            Date="{x:Bind Entry.Date, Mode=TwoWay}"
            IsEnabled="{x:Bind Entry.Value, Mode=OneWay}" />
    </Grid>
</controls:SettingsCard>
