<Window x:Class="Grid.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:Grid"
mc:Ignorable="d"
Title="MainWindow" Height="250" Width="300">
<Grid Grid.IsSharedSizeScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition/>
</Grid.RowDefinitions>
<!--列头-->
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" SharedSizeGroup="A" />
<ColumnDefinition Width="100" SharedSizeGroup="B"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Background="Orange"/>
<Border Background="Green" Grid.Column="1" Margin="3,7,10,15"/>
<!--左上右下-->
<GridSplitter HorizontalAlignment="Right" Height="10" Width="5" Background="Gray"/>
<GridSplitter HorizontalAlignment="Right" Height="10" Width="5" Background="Gray" Grid.Column="1"/>
</Grid>
<!--数据表-->
<Grid Grid.Row="1" Height="60" VerticalAlignment="Top" Margin="0,10,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="A"/>
<ColumnDefinition SharedSizeGroup="B"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Background="Orange">
</Border>
<Border Grid.Column="1" BorderBrush="Red" BorderThickness="1">
<TextBlock/>
</Border>
</Grid>
</Grid>
</Window>