<Window x:Class="SDKSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Row GridSplitter Example">
<StackPanel Grid.Row="0" Grid.Column="0">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0"
Background="Red"/>
<StackPanel Grid.Row="0" Grid.Column="1"
Background="Black"/>
<StackPanel Grid.Row="0" Grid.Column="2"
Background="Tan"/>
<StackPanel Grid.Row="1" Grid.Column="0"
Background="Tan"/>
<StackPanel Grid.Row="1" Grid.Column="1"
Background="Brown"/>
<StackPanel Grid.Row="1" Grid.Column="2"
Background="Blue"/>
<StackPanel Grid.Row="2" Grid.Column="0"
Background="Red"/>
<StackPanel Grid.Row="2" Grid.Column="1"
Background="Blue"/>
<StackPanel Grid.Row="2" Grid.Column="2"
Background="Tan"/>
<GridSplitter Grid.Row="1"
Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Background="Black"
ShowsPreview="true"
ResizeDirection="Columns"
Height="5"/>
<GridSplitter Grid.Column="1"
Grid.RowSpan="3"
HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Background="White"
ShowsPreview="true"
Width="5"/>
</Grid>
</StackPanel>
</Window>
|