<!-- <SnippetGraphicsMMStretchExampleWholePage> -->
<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="Microsoft.Samples.BrushExamples.StretchExample"
  WindowTitle="ImageBrush Example"
  Background="White">

  <StackPanel Orientation="Horizontal">
  
  

    <!-- <SnippetGraphicsMMNoStretchExample> -->
    <Rectangle
      Width="125" Height="175"
      Stroke="Black"
      StrokeThickness="1"
      Margin="0,0,5,0">
      <Rectangle.Fill>
        <ImageBrush 
          Stretch="None"
          ImageSource="sampleImages\testImage.gif"/>
      </Rectangle.Fill>
    </Rectangle>
    <!-- </SnippetGraphicsMMNoStretchExample> -->

    <!-- <SnippetGraphicsMMUniformStretchExample> -->
    <Rectangle
      Width="125" Height="175"
      Stroke="Black"
      StrokeThickness="1"
      Margin="0,0,5,0">
      <Rectangle.Fill>
        <ImageBrush 
          Stretch="Uniform"
          ImageSource="sampleImages\testImage.gif"/>
      </Rectangle.Fill>
    </Rectangle>
    <!-- </SnippetGraphicsMMUniformStretchExample> -->    
    
    <!-- <SnippetGraphicsMMUniformToFillStretchExample> -->
    <Rectangle
      Width="125" Height="175"
      Stroke="Black"
      StrokeThickness="1"
      Margin="0,0,5,0">
      <Rectangle.Fill>
        <ImageBrush 
          Stretch="UniformToFill"
          ImageSource="sampleImages\testImage.gif"/>
      </Rectangle.Fill>
    </Rectangle>
    <!-- </SnippetGraphicsMMUniformToFillStretchExample> --> 

    <!-- <SnippetGraphicsMMFillStretchExample> -->
    <Rectangle
      Width="125" Height="175"
      Stroke="Black"
      StrokeThickness="1"
      Margin="0,0,5,0">
      <Rectangle.Fill>
        <ImageBrush 
          Stretch="Fill"
          ImageSource="sampleImages\testImage.gif"/>
      </Rectangle.Fill>
    </Rectangle>
    <!-- </SnippetGraphicsMMFillStretchExample> --> 

    
  </StackPanel>
</Page>
<!-- </SnippetGraphicsMMStretchExampleWholePage> -->