<flyctrllib:WindowBigClose x:Class="MultiLayout.MainEdit.WdGraphTabItemConfig"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                           xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
                           mc:Ignorable="d" 
      SizeToContent="WidthAndHeight"  >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="WdGraphTabItemConfigStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <Grid x:Name="grid_graphTabItem"/>
        <Grid x:Name="grid_RC"/>
        <StackPanel Margin="5,20">
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}" DataContext="{Binding DataContext,ElementName=grid_graphTabItem}">
                    <TextBlock Style="{StaticResource  Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.MainEdit.PgMainEdit.Header}" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource  Styles.Text.FieldContent.Input.Card}" Text="{Binding Title}" Tag="Full" MinWidth="100"/>
                    </StackPanel>
                </StackPanel>
                <GroupBox DataContext="{Binding DataContext,ElementName=grid_RC}">
                    <GroupBox.Header>
                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.MainEdit.PgMainEdit.Size}"/>
                    </GroupBox.Header>
                    <StackPanel Orientation="Horizontal">

                        <StackPanel Margin="{StaticResource ControlMargin}">
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource  Styles.Text.FieldContent.Input.Card}" Text="{Binding ColCnt}" />
                                <TextBlock Style="{StaticResource  Styles.Text.FieldContent.Unit}" Text="列" />
                            </StackPanel>
                        </StackPanel>
                        <TextBlock Text="x" VerticalAlignment="Center"/>
                        <StackPanel Margin="{StaticResource ControlMargin}">
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource  Styles.Text.FieldContent.Input.Card}" Text="{Binding RowCnt}" />
                                <TextBlock Style="{StaticResource  Styles.Text.FieldContent.Unit}" Text="行" />
                            </StackPanel>
                        </StackPanel>
                        <Button Style="{StaticResource Styles.Button.Icon}" Click="button_apply_Click" >
                            <iconPacks:PackIconMaterial Kind="CheckCircle" />
                        </Button>
                    </StackPanel>

                </GroupBox>

            </StackPanel>


            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="{StaticResource str.MainEdit.PgMainEdit.Order}"/>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <Button Style="{StaticResource Styles.Button.Icon}" Click="button_pre_Click" >
                        <iconPacks:PackIconMaterial Kind="ArrowLeftBoldCircle" />
                    </Button>
                    <Button Style="{StaticResource Styles.Button.Icon}" Click="button_next_Click" >
                        <iconPacks:PackIconMaterial Kind="ArrowRightBoldCircle" />
                    </Button>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>
