<Window x:Class="Layoutcontainer.GridSplitter_Sample"
        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:Layoutcontainer"
        mc:Ignorable="d"
        Title="GridSplitter_Sample" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition MinHeight="20" Height="20"></RowDefinition>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition MinWidth="20" Width="20"></ColumnDefinition>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Button>Button1</Button>
        <Button Grid.Column="2" Grid.Row="1">Button2</Button>
        <Button Grid.Column="3" Grid.Row="3">Button3</Button>
        <Button Grid.Column="4" Grid.Row="4">Button4</Button>
        <GridSplitter ShowsPreview="True" 
                Grid.Column="1" 
                Grid.RowSpan="3" 
                HorizontalAlignment="Stretch" 
                Margin="0, 0, 0, 10" Width="2" Background="Black" />
        <GridSplitter ShowsPreview="True" 
                Grid.Row="2" 
                Grid.ColumnSpan="3" 
                HorizontalAlignment="Stretch" 
                Margin="0, 5, 0, 5" Height="2" Background="Black" />
    </Grid>
</Window>
