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

<StackPanel Orientation="Horizontal">
  <StackPanel.Resources>
    <Style TargetType="Path">
      <Setter Property="Margin" Value="5" />
    </Style>
  </StackPanel.Resources>

<!-- Example 13-26. Path.Data as text -->

<!-- Longhand -->

<Path Fill="Cyan" Stroke="Black">
  <Path.Data>
    <PathGeometry>
      <PathGeometry.Figures>
        <PathFigure StartPoint="0,0" IsClosed="True">
          <LineSegment Point="50,0" />
          <LineSegment Point="50,50" />
          <LineSegment Point="0,50" />
        </PathFigure>
      </PathGeometry.Figures>
    </PathGeometry>
  </Path.Data>
</Path>


<!-- Shorthand -->

<Path Fill="Cyan" Stroke="Black" Data="M 0,0 L 50,0 50,50 0,50 Z" />

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

</StackPanel>

</Page>
