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

  <StackPanel>


    <Button>A Button  
      <Button.Background>
        <SolidColorBrush x:Name="MyAnimatedSolidColorBrush" Color="Blue" />
      </Button.Background>
      <Button.Triggers>
        <EventTrigger RoutedEvent="Button.Click">
          <BeginStoryboard>
            <Storyboard>
              <ColorAnimation 
                Storyboard.TargetName="MyAnimatedSolidColorBrush"
                Storyboard.TargetProperty="Color"
                From="Red"
                To="Blue"
                Duration="0:0:10" />
            </Storyboard>
          </BeginStoryboard>
        </EventTrigger>
      </Button.Triggers>
    </Button>
    
  </StackPanel>
</Page>
