<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-46. Specifying a Stretch and alignment -->

<!-- NOTE: If you run this in XamlPad, you will get an error
     because it will attempt to load the image relative to
     the XamlPad executable. Double clicking this file should
     work fine, as long as the Images directory (provided as
     part of these examples) is in the same directory as this
     file, and contains the Moggie.jpg file (also provided).
     But if you move this file, it will stop working, because
     of the relative path.
-->

<Rectangle>
  <Rectangle.Fill>
    <ImageBrush ImageSource="Images\Moggie.jpg" Stretch="UniformToFill"
                AlignmentX="Left" AlignmentY="Bottom" />
  </Rectangle.Fill>
</Rectangle>


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

</Page>

