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



<!-- Example 3-10. Applying a Consistent Margin with a Style -->

<Grid Background="Beige"
      ShowGridLines="True">
  <Grid.Resources>
    <Style TargetType="TextBlock">
      <Setter Property="Margin" Value="5,3" />
    </Style>
  </Grid.Resources>

  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />

<!-- End of Example 3-10. -->

    <ColumnDefinition />
  </Grid.ColumnDefinitions>
  <Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <RowDefinition Height="Auto" />
    <RowDefinition Height="Auto" />
  </Grid.RowDefinitions>



  <TextBlock Grid.Column="0" Grid.Row="0">Protocol:</TextBlock>
  <TextBlock Grid.Column="1" Grid.Row="0">HyperText Transfer Protocol</TextBlock>
  <TextBlock Grid.Column="0" Grid.Row="1">Type:</TextBlock>
  <TextBlock Grid.Column="1" Grid.Row="1">HTML Document</TextBlock>
  <TextBlock Grid.Column="0" Grid.Row="2">Connection:</TextBlock>
  <TextBlock Grid.Column="1" Grid.Row="2">Not encrypted</TextBlock>

</Grid>



</Page>