开发者

How to know when the Silverlight VisualStateManager.GoToState transition has completed?

I am using the Silverlight VisualStateManager.GoToState method to transition my control from one state to another. This all works fine and the transition animations works great. But I want to know when the transition has comp开发者_如何学运维leted so I can then start other actions in my code. Is there an event or other mechanism I can use to discover when the transition to another state has completed?


The control immediately goes to the state given. The animations that this triggers can be thought of as a side-effect. You can determine when a triggered timeline is complete via its Completed event:

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

Colin E.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜