DoubleAnimation.Completed and DoubleAnimation.CurrentStateInvalidated not fired

I don't know if this problem exists for other animation types, but DoubleAnimation seems don't fire these events.




Answer this question

DoubleAnimation.Completed and DoubleAnimation.CurrentStateInvalidated not fired

  • PeterLu

    Could you send a repro I just tried the following on Feb CTP bits, and the events fired correctly:

    DoubleAnimation da = new DoubleAnimation(200, new Duration(new TimeSpan(0, 0, 2)));
    da.Completed +=
    new EventHandler(Storyboard_Completed);
    da.CurrentStateInvalidated +=
    new EventHandler(Storyboard_CurrentStateInvalidated);
    myRect.BeginAnimation(Canvas.TopProperty, da);

    Thanks,
    Ed


  • DoubleAnimation.Completed and DoubleAnimation.CurrentStateInvalidated not fired