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

  <StackPanel Orientation="Horizontal" Margin="20">

  

    <Border BorderBrush="Black" BorderThickness="1" Margin="0,0,10,0"
      VerticalAlignment="Top">
    <Rectangle
     Width="100" Height="100">
      <Rectangle.Fill>
        <ImageBrush ImageSource="sampleImages\triangle.jpg"
          Viewport="0,0,0.25,0.25" />
      </Rectangle.Fill>
    </Rectangle>
    </Border>

    <Border BorderBrush="Black" BorderThickness="1" Margin="0,0,10,0"
      VerticalAlignment="Top">    
    <Rectangle
     Width="100" Height="100">
      <Rectangle.Fill>
        <ImageBrush ImageSource="sampleImages\triangle.jpg"
          Viewport="0,0,0.25,0.25" 
          TileMode="Tile" />
      </Rectangle.Fill>  
    </Rectangle>
    </Border>

    <Border BorderBrush="Black" BorderThickness="1" Margin="0,0,10,0"
      VerticalAlignment="Top">   
    <Rectangle
     Width="100" Height="100">
      <Rectangle.Fill>
        <ImageBrush ImageSource="sampleImages\triangle.jpg"
          Viewport="0,0,0.25,0.25" 
          TileMode="FlipX" />
      </Rectangle.Fill>    
    </Rectangle>
    </Border>

    <Border BorderBrush="Black" BorderThickness="1" Margin="0,0,10,0"
      VerticalAlignment="Top">
    <Rectangle
     Width="100" Height="100">
      <Rectangle.Fill>
        <ImageBrush ImageSource="sampleImages\triangle.jpg"
          Viewport="0,0,0.25,0.25" 
          TileMode="FlipY" />
      </Rectangle.Fill>     
    </Rectangle>
    </Border>

    <Border BorderBrush="Black" BorderThickness="1" Margin="0,0,10,0"
      VerticalAlignment="Top">
    <!-- <SnippetGraphicsMMFlipXYExample> -->
    <Rectangle
     Width="100" Height="100" >
      <Rectangle.Fill>
        <ImageBrush ImageSource="sampleImages\triangle.jpg"
          Viewport="0,0,0.25,0.25" 
          TileMode="FlipXY"
          />
      </Rectangle.Fill>    
    </Rectangle>
    <!-- </SnippetGraphicsMMFlipXYExample> -->
    </Border>

    
  </StackPanel>
</Page>
<!-- </SnippetGraphicsMMTilingExampleWholePage> -->