How do I know when the Silverlight VisualStateManager.GoToState transition completed?

I use the Silverlight method VisualStateManager.GoToStateto transition my control from one state to another. All of this works great, and the transition animation works great. But I want to know when the transition has completed, so I can start other actions in my code. Is there an event or other mechanism that I can use to detect when the transition to another state has completed?

+3
source share
1 answer

The control immediately enters the specified state. Animations that these triggers can be seen as a side effect. You can determine when a completed timeline is completed using the Completed event:

http://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline.completed%28VS.95%29.aspx

Colin E.

+6
source

Source: https://habr.com/ru/post/1780804/


All Articles