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

  <StackPanel>

    <!-- <SnippetSolidColorBrushNamedColor1XAML> -->
    <!-- This button's background is painted with a red SolidColorBrush,
         described using a named color. -->
    <Button Background="Red">A Button</Button>
    <!-- </SnippetSolidColorBrushNamedColor1XAML> -->

    <!-- <SnippetSolidColorBrushHex1XAML> -->
    <!-- This button's background is painted with a red SolidColorBrush,
         described using hexadecimal notation. -->
    <Button Background="#FFFF0000">A Button</Button>
    <!-- </SnippetSolidColorBrushHex1XAML> -->
    
    <!-- <SnippetSolidColorBrushPropertyTag1XAML> -->
    <!-- Both of these buttons' backgrounds are painted with red 
         SolidColorBrush objects, described using object element
         syntax. -->
    <Button>A Button
    
      <Button.Background>
        <SolidColorBrush Color="Red" />
      </Button.Background>
    </Button>
    
    <Button>A Button
    
      <Button.Background>
        <SolidColorBrush Color="#FFFF0000" />
      </Button.Background>
    </Button>  
    <!-- </SnippetSolidColorBrushPropertyTag1XAML> -->    
    
  </StackPanel>
</Page>
