JavaAndCSharp JavaAndCSharp -4 years ago 144
C# Question

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.)

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download