<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">


<!-- Example 13-7. Rectangles with size and position controlled by parent -->

<Grid>
  <Grid.ColumnDefinitions>
    <ColumnDefinition />
    <ColumnDefinition />
  </Grid.ColumnDefinitions>

  <Grid.RowDefinitions>
    <RowDefinition />
    <RowDefinition />
  </Grid.RowDefinitions>

  <Rectangle Grid.Column="0" Grid.Row="0" Fill="LightGray" />
  <Rectangle Grid.Column="1" Grid.Row="0" Fill="Black" />
  <Rectangle Grid.Column="0" Grid.Row="1" Fill="DarkGray" />
  <Rectangle Grid.Column="1" Grid.Row="1" Fill="White" />
</Grid>

<!-- End of Example 13-7. -->


</Page>