Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 SilverlightVisualStateManager.GoToState方法将我的控件从一种状态转换到另一种状态。这一切都很好,过渡动画效果很好。但我想知道转换何时完成,以便我可以在我的代码中启动其他操作。是否有一个事件或其他机制可以用来发现到另一个状态的转换何时完成?
VisualStateManager.GoToState
控制立即进入给定的状态。这个触发的动画可以被认为是一种副作用。您可以通过 Completed 事件确定触发时间线何时完成:
http://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline.completed%28VS.95%29.aspx
科林·E。