<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="Microsoft.Samples.BrushExamples.VisualBrushExample"
  WindowTitle="VisualBrush Example"
  Background="White">

  <StackPanel>


    <!-- <SnippetGraphicsMMVisualBrushAsRectangleBackgroundExample> -->
    <Rectangle Width="150" Height="150" Stroke="Black" Margin="5,0,5,0">
      <Rectangle.Fill>
        <VisualBrush>
          <VisualBrush.Visual>
            <StackPanel Background="White">
              <Rectangle Width="25" Height="25" Fill="Red" Margin="2" />
              <TextBlock FontSize="10pt" Margin="2">Hello, World!</TextBlock>
              <Button Margin="2">A Button</Button>
            </StackPanel>
          </VisualBrush.Visual>
        </VisualBrush>
      </Rectangle.Fill>
    </Rectangle>
    <!-- </SnippetGraphicsMMVisualBrushAsRectangleBackgroundExample> -->

    
  </StackPanel>
</Page>
