<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-8. Rotating rectangles -->

<Canvas>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Indigo" />
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Violet">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="45" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Blue">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="90" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Cyan">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="135" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Green">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="180" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Yellow">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="225" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Orange">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="270" />
    </Rectangle.RenderTransform>
  </Rectangle>
  <Rectangle Canvas.Left="50" Canvas.Top="50" Width="40" Height="10"
             Fill="Red">
    <Rectangle.RenderTransform>
      <RotateTransform Angle="315" />
    </Rectangle.RenderTransform>
  </Rectangle>
</Canvas>

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


</Page>