Multiple Items in a Grid Cell
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid Background="Beige">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Rectangle Grid.Column="1" Grid.Row="2" Grid.RowSpan="3" Margin="5,3" Fill="White" />
<Rectangle Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="5,3" Fill="White" />
<TextBlock Grid.Column="0" Grid.Row="0">Title:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="0">value</TextBlock>
<Rectangle Grid.Row="1" Grid.ColumnSpan="2" Margin="5" Height="1" Fill="Black" />
<TextBlock Grid.Column="0" Grid.Row="2">A:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="2">a</TextBlock>
<TextBlock Grid.Column="0" Grid.Row="3">B:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="3">b</TextBlock>
<TextBlock Grid.Column="0" Grid.Row="4">C:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="4">c</TextBlock>
<Rectangle Grid.Row="5" Grid.ColumnSpan="2" Margin="5" Height="1" Fill="Black" />
<TextBlock Grid.Column="0" Grid.Row="6">Q:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="6">q</TextBlock>
<TextBlock Grid.Column="0" Grid.Row="7">W:</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="7">w</TextBlock>
</Grid>
</Page>
Related examples in the same category