<UserControl x:Class="FLY.Thick.Base.UI.CustomSection.UcSingleStateTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:FLY.Thick.Base.UI.CustomSection"
             xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
             
             mc:Ignorable="d" 
             Background="WhiteSmoke">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <StackPanel>
            <StackPanel.Resources>
                <Style x:Key="TextBlockStyle_GridFieldHeader" TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeaderEditable}">
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="1.5,0"/>
                    <Setter Property="Foreground" Value="White"/>
                    <Setter Property="Background" Value="{StaticResource Color_theme_activity}"/>
                </Style>
                <Style x:Key="TextBlockStyle_GridFieldContent" TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldContent}">
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="1.5,0"/>
                    <Setter Property="Background" Value="White"/>
                </Style>
                <Style x:Key="ComboBoxStyle_GridFieldContent" TargetType="ComboBox" >
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="1,0"/>
                    <Setter Property="FontSize" Value="25"/>
                </Style>
            </StackPanel.Resources>
            <StackPanel Orientation="Horizontal" Margin="3,1.5">
                <TextBlock Style="{StaticResource TextBlockStyle_GridFieldHeader}" 
                           Text="状态"  />
                <TextBlock Style="{StaticResource TextBlockStyle_GridFieldHeader}" 
                           Text="页面" />
            </StackPanel>
            <ItemsControl x:Name="itemsControl_controllerState" >
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <StackPanel>
                            <StackPanel Orientation="Horizontal" Margin="3,1.5">
                                <TextBlock Style="{StaticResource TextBlockStyle_GridFieldContent}" Text="{Binding ControllerState}"/>
                                <TextBlock Style="{StaticResource TextBlockStyle_GridFieldContent}" Text="{Binding Header}"/>
                                <Button Style="{StaticResource ButtonStyle_icon}" Click="button_del_Click" Tag="{Binding .}" Foreground="{StaticResource MahApps.Brushes.Validation5}">
                                    <iconPacks:PackIconMaterial Kind="CloseCircle"/>
                                </Button>
                            </StackPanel>
                            
                        </StackPanel>
                        
                        
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
            <StackPanel Orientation="Horizontal" Margin="3">
                <ComboBox x:Name="combobox_controllerstate" Style="{StaticResource ComboBoxStyle_GridFieldContent}"/>
                <ComboBox x:Name="combobox_tabitemheader" Style="{StaticResource ComboBoxStyle_GridFieldContent}"/>
                <Button Style="{StaticResource ButtonStyle_icon}" Click="button_add_Click" >
                    <iconPacks:PackIconMaterial Kind="PlusCircle"/>
                </Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
