<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" >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <StackPanel>
            <StackPanel.Resources>
                <Style x:Key="TextBlockStyle_GridFieldHeader" TargetType="TextBlock" BasedOn="{StaticResource Styles.Text.FieldHeader.Editable}">
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="1.5,0"/>
                    <Setter Property="Foreground" Value="{StaticResource Brushes.Text.White}"/>
                    <Setter Property="Background" Value="{StaticResource Brushes.Activity}"/>
                </Style>
                <Style x:Key="TextBlockStyle_GridFieldContent" TargetType="TextBlock" BasedOn="{StaticResource Styles.Text.FieldContent}">
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Margin" Value="1.5,0"/>
                    <Setter Property="Background" Value="{StaticResource Brushes.Text.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="{StaticResource str.PgCustomSections.State}"  />
                <TextBlock Style="{StaticResource TextBlockStyle_GridFieldHeader}" 
                           Text="{StaticResource str.PgCustomSections.Page}" />
            </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 Styles.Button.Icon}" Click="button_del_Click" Tag="{Binding .}" Foreground="{StaticResource Brushes.Validation}">
                                    <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 Styles.Button.Icon}" Click="button_add_Click" >
                    <iconPacks:PackIconMaterial Kind="PlusCircle"/>
                </Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
