<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.MainEdit.Window_MainSet"
        xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:props="clr-namespace:ThickTcpUiInWindow.Properties"
        xmlns:my="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary" 
        Title="Window_mainset" 
        mc:Ignorable="d" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:local="clr-namespace:ThickTcpUiInWindow" SizeToContent="WidthAndHeight" >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>


    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <StackPanel Orientation="Vertical" Margin="5,20">
            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="{DynamicResource strDynArea}"/>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strDynAreaWidth}" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding DynAreaWidth}" MinWidth="30" MaxWidth="120"/>
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" Text="pixel"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strVisible}" />
                        <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsDynAreaVisible}" HorizontalAlignment="Left"/>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="{DynamicResource strGraphArea}"/>
                </GroupBox.Header>
                <StackPanel Orientation="Vertical">
                    <StackPanel Orientation="Horizontal" Margin="3">
                        <TextBlock Text="{DynamicResource strStatus}" Width="100" Margin="1,0" Foreground="White" Background="{StaticResource Color_theme_activity}"/>
                        <TextBlock Text="{DynamicResource strTabItem}" Width="100" Margin="1,0" Foreground="White" Background="{StaticResource Color_theme_activity}"/>
                    </StackPanel>
                    <ItemsControl x:Name="itemsControl_controllerState" >
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Vertical" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal" Margin="3">
                                    <TextBlock Text="{Binding ControllerState}" Width="100" Margin="1,0"/>
                                    <TextBlock Text="{Binding Header}" Width="100" Margin="1,0"/>
                                    <Button Style="{StaticResource ButtonStyle_empty}" Click="button_del_Click" Margin="2" Background="White" Tag="{Binding .}">
                                        <StackPanel Orientation="Vertical">
                                            <Path Data="{StaticResource Geometry_close-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="30" Width="30"  />
                                        </StackPanel>
                                    </Button>
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                    <StackPanel Orientation="Horizontal" Margin="3">
                        <ComboBox x:Name="combobox_controllerstate" Width="100" Margin="1,0"/>
                        <ComboBox x:Name="combobox_tabitemheader" Width="100" Margin="1,0"/>
                        <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" BorderThickness="0" VerticalAlignment="Bottom" Click="button_add_Click" Margin="2" Background="White">
                            <StackPanel Orientation="Vertical">
                                <Path Data="{StaticResource Geometry_plus-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="30" Width="30"  />
                            </StackPanel>
                        </Button>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strGraphReverse}" />
                        <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsGraphReverse}" HorizontalAlignment="Left"/>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
            <StackPanel Orientation="Horizontal" Margin="3" HorizontalAlignment="Right">
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="隐藏主界面&#x0a;Logo" />
                    <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsLogoHidden}" HorizontalAlignment="Left"/>
                </StackPanel>
                <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" BorderThickness="0" VerticalAlignment="Bottom" Click="button_marksize_Click" Margin="5" Background="White">
                    <StackPanel Orientation="Vertical">
                        <Path Data="{StaticResource Geometry_group}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                        <TextBlock Text="{DynamicResource strMarkSize}" FontSize="15"/>
                    </StackPanel>
                </Button>
                <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" BorderThickness="0" VerticalAlignment="Bottom" Click="button_save_Click" Margin="5" Background="White">
                    <StackPanel Orientation="Vertical">
                        <Path Data="{StaticResource Geometry_check-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                        <TextBlock Text="{DynamicResource strOK}" FontSize="15" HorizontalAlignment="Center"/>
                    </StackPanel>
                </Button>

            </StackPanel>
            
           </StackPanel>
            </Grid>

</flyctrllib:WindowBigClose>