<flyctrllib:WindowBigClose x:Class="MultiLayout.MainEdit.WdMainConfig"
        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"
        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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
                           SizeToContent="WidthAndHeight" >
    <Window.Resources>
        <ResourceDictionary>
        </ResourceDictionary>
    </Window.Resources>


    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <StackPanel Margin="5,20">
            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="{StaticResource str.WdMainConfig.DynArea}"/>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <StackPanel Margin="{StaticResource ControlMargin}">
                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdMainConfig.DynAreaWidth}" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding DynAreaWidth}" MinWidth="30" MaxWidth="120"/>
                            <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="pixel"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Margin="{StaticResource ControlMargin}">
                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdMainConfig.IsDynAreaVisible}" />
                        <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsDynAreaVisible}" HorizontalAlignment="Left"/>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdMainConfig.IsLogoHidden}" />
                    <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsLogoHidden}" />
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.WdMainConfig.WindowSize}" />
                    <TextBlock Style="{StaticResource Styles.Text.FieldContent}" FontSize="{StaticResource FontSize.FieldContent.Small}" 
                               Text="{Binding Rect}" />
                    <TextBlock Style="{StaticResource Styles.Text.FieldContent}" FontSize="{StaticResource FontSize.FieldContent.Middle}" 
                               Text="{Binding WindowState}" />
                </StackPanel>
            </StackPanel>

            <StackPanel Orientation="Horizontal" Margin="{StaticResource ControlMargin}" HorizontalAlignment="Right">
                <Button Style="{StaticResource Styles.Button.Icon}" Click="button_marksize_Click" Margin="{StaticResource ControlMargin}" >
                    <StackPanel >
                        <iconPacks:PackIconMaterial Kind="Group" />
                        <TextBlock Text="{StaticResource str.WdMainConfig.MarkSize}"/>
                    </StackPanel>
                </Button>
                <Button Style="{StaticResource Styles.Button.Icon}" Click="button_save_Click" Margin="{StaticResource ControlMargin}" >
                    <StackPanel >
                        <iconPacks:PackIconMaterial Kind="CheckCircle" />
                        <TextBlock Text="{StaticResource str.WdMainConfig.Save}"/>
                    </StackPanel>
                </Button>

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

</flyctrllib:WindowBigClose>