Search code examples
c#visual-studiovisual-studio-2010windows-phone-7

How to check the status of a storyboard?


How would I check the status of a storyboard?

Example:

if (storyboard.Completed += true) // ???
{
}

(This code does not work, for obvious reasons.)


Solution

  • Just hook the Completed event and when your code runs in there, the storyboard will have been completed. See: http://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline.completed(VS.95).aspx#Y565