Multiple Items in a Grid Cell
<UserControl x:Class='SilverlightApplication3.MainPage'
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'
mc:Ignorable='d'
d:DesignWidth='640'
d:DesignHeight='480'>
<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>
</UserControl>
Related examples in the same category