<UserControl x:Class="ApSilverlight.SilverlightAnimacionColor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="400">

  <Grid x:Name="LayoutRoot" Background="White">
    <Grid.Resources>
      <Storyboard x:Name="sbColorFondoHexagono">
        <ColorAnimation
            Storyboard.TargetName="Hexagono" 
            Storyboard.TargetProperty="(Polygon.Fill).(SolidColorBrush.Color)"
            From="LightBlue" To="Blue" Duration="0:0:4"
            AutoReverse="True" 
            RepeatBehavior="Forever"
          />
      </Storyboard>
    </Grid.Resources>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="200" />
    </Grid.RowDefinitions>
    <TextBlock Margin="10" HorizontalAlignment="Center">
      Clic sobre el hexágono para iniciar la animación.
    </TextBlock>
    <Polygon Grid.Row="1" x:Name="Hexagono"
             Points="100,50 200,0 300,50 300,150 200,200 100,150 100,50"
             Stroke="Blue" Fill="LightBlue"
             MouseLeftButtonDown="Mouse_Clicked">
    </Polygon>
  </Grid>
</UserControl>
