Using the attached properties of Grid
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="" Height="300" Width="300">
<Grid ShowGridLines="true">
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="50"/>
<RowDefinition Height="100" />
<RowDefinition Height="25" />
<RowDefinition Height="25" />
<TextBlock Grid.Column="0" Grid.Row="0">Col 0, Row 0 </TextBlock>
<TextBlock Grid.Column="1" Grid.Row="0">Col 1, Row 0 </TextBlock>
<TextBlock Grid.Column="0" Grid.Row="1">Col 0, Row 1 </TextBlock>
<TextBlock Grid.Column="1" Grid.Row="1">Col 1, Row 1 </TextBlock>
</Grid>
</Window>
Related examples in the same category