title: WPF Storyboard Animation Loops Forever Even After Being Set
body: <p>I have a  a custom user control to animate based on a <code>DependencyProperty</code> which is bound to a <code>DataTrigger</code>. If the <code>DependencyProperty</code> is equal to <em>Failure</em>, it should animate the fill color of a rectangle (named buttonColor) within the user control. </p>
  
  <p>For some reason though, it always loops forever even if I set the <code>RepeatBehavior</code> to any value including 1. </p>
  
  <p>If I remove the RepeatBehavior attribute, it only plays the animation once (as expected). Here is the code which I have the issue:</p>
  
  <pre><code>&lt;DataTrigger Binding="{Binding Path=ButtonAction.Status}" Value="Failure"&gt;
      &lt;DataTrigger.EnterActions&gt;
          &lt;StopStoryboard BeginStoryboardName="Pulse"/&gt;
  
          &lt;BeginStoryboard&gt;
              &lt;Storyboard RepeatBehavior="1"&gt;
                  &lt;ColorAnimation Storyboard.TargetName="buttonColor"
                                  Storyboard.TargetProperty="Fill.Color" 
                                  To="{StaticResource FailedColor}" 
                                  AutoReverse="True" /&gt;
              &lt;/Storyboard&gt;
          &lt;/BeginStoryboard&gt;
      &lt;/DataTrigger.EnterActions&gt;
  &lt;/DataTrigger&gt;
  </code></pre>