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

<!-- Example 3-34. Handling overflow -->

<Grid Background="Yellow" ShowGridLines="True">
  <Grid.RowDefinitions>
    <RowDefinition />
    <RowDefinition />
  </Grid.RowDefinitions>

  <StackPanel Height="100" Orientation="Horizontal">
    <TextBlock TextWrapping="Wrap" FontSize="20">
      This is some text that is too long to fit.
    </TextBlock>
  </StackPanel>

  <TextBlock Grid.Row="1" TextWrapping="Wrap" FontSize="20">
    This is some text that is too long to fit.
  </TextBlock>
</Grid>

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

</Page>