<mah:MetroWindow x:Class="BDU.Windows.MainWindow"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:local="clr-namespace:BDU.Windows"
                 xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
                 xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
                 xmlns:vs="clr-namespace:BDU.Views"
                 mc:Ignorable="d"
                 Loaded="MetroWindow_Loaded"
                 d:DataContext="{d:DesignInstance Type=local:MainWindow}"
                 Title="BDU_MainWindow"
                 Height="580"
                 Width="1099">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="1.5*" />
            <RowDefinition Height="7" />
            <RowDefinition />
            <RowDefinition Height="7" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="7" />
            <ColumnDefinition Width="300" />
            <ColumnDefinition Width="7" />
            <ColumnDefinition />
            <ColumnDefinition Width="7" />
            <ColumnDefinition Width="400" />
            <ColumnDefinition Width="7" />
        </Grid.ColumnDefinitions>

        <GridSplitter Grid.Row="1"
                      Grid.RowSpan="3"
                      Grid.Column="2"
                      Width="7"
                      Background="Transparent"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Stretch"
                      ResizeBehavior="PreviousAndNext"
                      ResizeDirection="Columns"
                      ShowsPreview="True" />
        <GridSplitter Grid.Row="1"
                      Grid.RowSpan="3"
                      Grid.Column="4"
                      Width="7"
                      Background="Transparent"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Stretch"
                      ResizeBehavior="PreviousAndNext"
                      ResizeDirection="Columns"
                      ShowsPreview="True" />

        <GridSplitter Grid.Row="2"
                      Grid.ColumnSpan="7"
                      Height="7"
                      Background="Transparent"
                      HorizontalAlignment="Stretch"
                      VerticalAlignment="Stretch"
                      ResizeBehavior="PreviousAndNext"
                      ResizeDirection="Rows"
                      ShowsPreview="True" />

        <vs:ToolBar Grid.Column="1"
                    Grid.ColumnSpan="5" />
        <Grid Grid.Column="5">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="auto" />
                </Grid.ColumnDefinitions>
                <Menu Grid.Column="1">
                    <MenuItem Header="{Binding User.UserName}"
                              FontSize="12"
                              Height="48"
                              VerticalContentAlignment="Center">
                        <MenuItem.Icon>
                            <materialDesign:PackIcon Kind="User" />
                        </MenuItem.Icon>
                        <MenuItem Header="管理"
                                  Click="UserManage_Click" />
                        <MenuItem Header="登出"
                                  Click="LogOut_Click" />
                    </MenuItem>
                </Menu>
            </Grid>
        </Grid>
        <vs:CommandTreeView Grid.Row="1"
                            Grid.Column="1"
                            Grid.RowSpan="3" />
        <vs:StepsManager Grid.Row="1"
                         Grid.Column="3" />
        <vs:SingleStepEdit Grid.Row="1"
                           Grid.Column="5" />
        <vs:LogArea Grid.Row="3"
                    Grid.Column="3" />
        <vs:ParametersManager Grid.Row="3"
                              Grid.Column="5" />

    </Grid>
</mah:MetroWindow>
