title: WPF Stopping ColorAnimation using RepeatBehavior
body: <p>I have some problems with stopping my animation, it just goes on forever. I would think that the RepeatBehavior should control this, but it does not seem to work.</p>
  
  <pre><code>&lt;Grid.Style&gt;
      &lt;Style TargetType="Grid"&gt;
          &lt;Style.Triggers&gt;
              &lt;DataTrigger Binding="{Binding IsNew}" Value="true"&gt;
                  &lt;DataTrigger.EnterActions&gt;
                      &lt;BeginStoryboard&gt;
                          &lt;Storyboard&gt;
                              &lt;ColorAnimation RepeatBehavior="1"
                                  Storyboard.TargetProperty="Background.(SolidColorBrush.Color)"
                                  To="LightGreen" Duration="0:0:0.25" AutoReverse="True" &gt;
                              &lt;/ColorAnimation&gt;
                          &lt;/Storyboard&gt;
                      &lt;/BeginStoryboard&gt;
                  &lt;/DataTrigger.EnterActions&gt;
              &lt;/DataTrigger&gt;
              &lt;DataTrigger Binding="{Binding IsNew}" Value="false"&gt;
                  &lt;Setter Property="Background" Value="WhiteSmoke"&gt;&lt;/Setter&gt;
              &lt;/DataTrigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  &lt;/Grid.Style&gt;
  </code></pre>