<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 Orientation="Vertical" Margin="5,20">
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}" DataContext="{Binding DataContext,ElementName=grid_graphTabItem}">
                    <TextBlock Style="{StaticResource  TextBlockStyle_FieldHeaderEditable}" Text="标题" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource  TextBoxStyle_FieldContent}" Text="{Binding Title}" Tag="Full" MinWidth="100"/>
                    </StackPanel>
                </StackPanel>
                <GroupBox DataContext="{Binding DataContext,ElementName=grid_RC}">
                    <GroupBox.Header>
                        <TextBlock Text="尺寸"/>
                    </GroupBox.Header>
                    <StackPanel Orientation="Horizontal">

                        <StackPanel Margin="{StaticResource ControlMargin}">
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource  TextBoxStyle_FieldContent}" Text="{Binding ColCnt}" />
                                <TextBlock Style="{StaticResource  TextBlockStyle_FieldContent_mm}" Text="列" />
                            </StackPanel>
                        </StackPanel>
                        <TextBlock Text="x" VerticalAlignment="Center"/>
                        <StackPanel Margin="{StaticResource ControlMargin}">
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource  TextBoxStyle_FieldContent}" Text="{Binding RowCnt}" />
                                <TextBlock Style="{StaticResource  TextBlockStyle_FieldContent_mm}" Text="行" />
                            </StackPanel>
                        </StackPanel>
                        <Button Style="{StaticResource ButtonStyle_icon}" Click="button_apply_Click" >
                            <iconPacks:PackIconMaterial Kind="CheckCircle" />
                        </Button>
                    </StackPanel>

                </GroupBox>

            </StackPanel>


            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="顺序"/>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <Button Style="{StaticResource ButtonStyle_icon}" Click="button_pre_Click" >
                        <iconPacks:PackIconMaterial Kind="ArrowLeftBoldCircle" />
                    </Button>
                    <Button Style="{StaticResource ButtonStyle_icon}" Click="button_next_Click" >
                        <iconPacks:PackIconMaterial Kind="ArrowRightBoldCircle" />
                    </Button>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>
