Timeline.CurrentStateInvalidated 事件


更新时间线的 ClockCurrentState 属性时发生。Occurs when the CurrentState property of the timeline's Clock is updated.

 event EventHandler ^ CurrentStateInvalidated;
public event EventHandler CurrentStateInvalidated;
member this.CurrentStateInvalidated : EventHandler 
Public Custom Event CurrentStateInvalidated As EventHandler 




CurrentStateInvalidated如果希望在时间线的 Clock 开始、停止或填充时收到通知,请使用事件。Use the CurrentStateInvalidated event when you want to be notified when a timeline's Clock starts, stops, or fills.

暂停 Clock 不会更改其 CurrentStatePausing a Clock does not change its CurrentState. 若要在时钟暂停时得到通知,请使用 CurrentGlobalSpeedInvalidated 事件。To be notified when a clock becomes paused, use the CurrentGlobalSpeedInvalidated event.

尽管在变为无效时发生此事件 ClockState ,但并不一定表示 ClockState 更改:在 Clock Active 相同的 Filling 勾选标记中切换到后再返回到的将 Active 导致触发此事件,但其 CurrentState 属性不会实际更改。Although this event occurs when the ClockState becomes invalid, that doesn't necessarily mean the ClockState changed: a Clock that switches from Active to Filling and then back to Active in the same tick will cause this event to fire, but its CurrentState property won't actually change.

Object EventHandler 事件处理程序的参数是 Clock 为此时间线创建的。The Object parameter of the EventHandler event handler is the Clock that was created for this timeline.

尽管此事件处理程序似乎与时间线关联,但它实际上是使用 Clock 为此时间线创建的来注册的。Although this event handler appears to be associated with a timeline, it actually registers with the Clock created for this timeline. 有关详细信息,请参阅 计时事件概述For more information, see the Timing Events Overview.