Clock.CurrentStateInvalidated 事件

定義

時鐘的 CurrentState 屬性更新時發生。Occurs when the clock's CurrentState property is updated.

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

備註

當您想要在時鐘開始、停止或填滿時收到通知時, 請使用事件。CurrentStateInvalidatedUse the CurrentStateInvalidated event when you want to be notified if when the clock starts, stops, or fills. 事件處理常式的Object參數Clock是, 其狀態為「無效」。 EventHandlerThe Object parameter of the EventHandler event handler is the Clock whose state was invalidated.

暫停並不會變更它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.

適用於

另請參閱