<Window x:Class="WpfApp2.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:WpfApp2"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="350"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#7671D8"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="600"/>
</Grid.ColumnDefinitions>
<Border Grid.Row="1" Grid.Column="0" Background="Pink"/>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Margin="5" Background="#7671D8" Grid.Column="0" Grid.Row="0"/>
<Border Margin="5" Background="#4C9ECD" Grid.Column="1" Grid.Row="0"/>
<Border Margin="5" Background="#D970CF" Grid.Column="2" Grid.Row="0"/>
<Border Margin="5" Background="#5AC4B6" Grid.Column="3" Grid.Row="0"/>
<Border Margin="5" Background="#D9707F" Grid.Column="4" Grid.Row="0"/>
<Border Margin="5" Background="Red" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"/>
<Border Margin="5" Background="Yellow" Grid.Row="1" Grid.Column="3" Grid.ColumnSpan="2"/>
<Border Margin="5" Background="Blue" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"/>
<Border Margin="5" Background="Green" Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2" />
</Grid>
</Grid>
</Grid>
</Window>
效果如下图所示: