title: Silverlight Animation style From Resource File
body: <p>I want to animate button shadow effect color when mouse enter border. 
  I try this code and is not working for me.
  And I don't know where is the problem is?</p>
  
  <pre><code>    &lt;Style x:Name="HeaderButton" TargetType="Button"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="Button"&gt;
                  &lt;Border x:Name="Border" BorderBrush="#FF550211" BorderThickness="0" CornerRadius="4"&gt;
                      &lt;Border.Triggers&gt;
                          &lt;EventTrigger RoutedEvent="Border.MouseEnter"&gt;
                              &lt;BeginStoryboard&gt;
                                  &lt;Storyboard&gt;
                                      &lt;ColorAnimation Storyboard.TargetProperty="Color" Storyboard.TargetName="MenuButtonShadow"
                                                      From="#FFFFFFFF" To="#FF000000" Duration="0:0:0.3"&gt;&lt;/ColorAnimation&gt;
                                  &lt;/Storyboard&gt;
                              &lt;/BeginStoryboard&gt;
                          &lt;/EventTrigger&gt;
                      &lt;/Border.Triggers&gt;
                      &lt;Border.Background&gt;
                          &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
                              &lt;GradientStop Color="#FFAF1232" Offset="0" /&gt;
                              &lt;GradientStop Color="#FFB60329" Offset="1" /&gt;
                          &lt;/LinearGradientBrush&gt;
                      &lt;/Border.Background&gt;
                      &lt;ContentPresenter Margin="8, 0" VerticalAlignment="Center" HorizontalAlignment="Center" /&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
      &lt;Setter Property="Effect"&gt;
          &lt;Setter.Value&gt;
              &lt;DropShadowEffect x:Name="MenuButtonShadow" ShadowDepth="0" BlurRadius="4"&gt;&lt;/DropShadowEffect&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
      &lt;Setter Property="Foreground" Value="White"&gt;&lt;/Setter&gt;
      &lt;Setter Property="Margin" Value="4"&gt;&lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>