title: WPF StoryBoard.Completed event not firing
body: <p>I have an animation before closing the main window, like the following code shows. Problem is the <code>StoryBoard.Completed</code> is not firing. Any clues what is causing this?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>DoubleAnimation dblAnimX = new DoubleAnimation(1.0, 0.0, new  Duration(TimeSpan.FromSeconds(0.5)));
  dblAnimX.SetValue(Storyboard.TargetProperty, this);
  
  DoubleAnimation dblAnimY = new DoubleAnimation(1.0, 0.0, new Duration(TimeSpan.FromSeconds(0.5)));
  dblAnimY.SetValue(Storyboard.TargetProperty, this);
  
  Storyboard story = new Storyboard();
  Storyboard.SetTarget(dblAnimX, this);
  Storyboard.SetTarget(dblAnimY, this);
  Storyboard.SetTargetProperty(dblAnimX, new PropertyPath("RenderTransform.ScaleX"));
  Storyboard.SetTargetProperty(dblAnimY, new PropertyPath("RenderTransform.ScaleY"));
  
  story.Children.Add(dblAnimX);
  story.Children.Add(dblAnimY);
  story.Begin(this);
  
  story.Completed += (o, s) =&gt; { this.Close(); };
  </code></pre>