Timeline.CurrentStateInvalidated Timeline.CurrentStateInvalidated Timeline.CurrentStateInvalidated Timeline.CurrentStateInvalidated Event

定義

發生於時刻表之 CurrentStateClock 屬性更新時。Occurs when the CurrentState property of the timeline's Clock is updated.

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

備註

當您想要在時間軸的Clock啟動、停止或填滿時收到通知時, 請使用事件。CurrentStateInvalidatedUse the CurrentStateInvalidated event when you want to be notified when a timeline's Clock starts, stops, or fills.

暫停並不會變更它CurrentState的。 ClockPausing 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參數Clock是針對這個時間軸所建立的。 EventHandlerThe 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.

適用於

另請參閱