title: Animation applied to shared static resource
body: <p>I have <code>RibbonButton</code> element which uses a <code>StaticResource</code> background brush.</p>
  
  <p>Now I am trying to apply animation to the background color of this button, but what happens is all the elements that uses the same <code>StaticResource</code> have their background color animated too !!!</p>
  
  <p>How to make this animation applicable only to the <code>RibbonButton</code> ?</p>
  
  <pre><code>&lt;Ribbon&gt;
      &lt;RibbonTab Header="Ribbon Tab 1"&gt;
          &lt;RibbonGroup Header="Ribbon Group 1" Background="{StaticResource BackgroundBrush}"&gt;
              &lt;RibbonButton x:Name="RibbonButton1" Label="Ribbon Button 1"
                            VerticalAlignment="Bottom" 
                            Style="{DynamicResource RibbonButton1_RibbonButtonStyle}"
                            Background="{StaticResource BackgroundBrush}"&gt;
                  &lt;RibbonButton.Resources&gt;
                      &lt;Style x:Key="RibbonButton1_RibbonButtonStyle" 
                             TargetType="RibbonButton"&gt;
                          &lt;Style.Triggers&gt;
                              &lt;DataTrigger Binding="{Binding SomethingChanged}" Value="true"&gt;
                                  &lt;DataTrigger.EnterActions&gt;
                                      &lt;BeginStoryboard&gt;
                                          &lt;Storyboard&gt;
                                              &lt;ColorAnimation Storyboard.TargetProperty="Background.(SolidColorBrush.Color)" 
                                                              Duration="0:0:0.1" To="Gold" /&gt;
                                          &lt;/Storyboard&gt;
                                      &lt;/BeginStoryboard&gt;
                                  &lt;/DataTrigger.EnterActions&gt;
                                  &lt;DataTrigger.ExitActions&gt;
                                      &lt;BeginStoryboard&gt;
                                          &lt;Storyboard FillBehavior="Stop"&gt;
                                              &lt;ColorAnimation Storyboard.TargetProperty="Background.(SolidColorBrush.Color)" 
                                                              Duration="0:0:0.1" To="{StaticResource BackgroundColor}" /&gt;
                                          &lt;/Storyboard&gt;
                                      &lt;/BeginStoryboard&gt;
                                  &lt;/DataTrigger.ExitActions&gt;
                              &lt;/DataTrigger&gt;
                          &lt;/Style.Triggers&gt;
                      &lt;/Style&gt;
                  &lt;/RibbonButton.Resources&gt;
              &lt;/RibbonButton&gt;
          &lt;/RibbonGroup&gt;
          ....
      &lt;/RibbonTab&gt;
  &lt;/Ribbon&gt;
  </code></pre>