Clock.CurrentState 属性

定义

获取指示时钟当前处于 ActiveFilling 还是 Stopped 状态的值。Gets a value indicating whether the clock is currently Active, Filling, or Stopped.

public:
 property System::Windows::Media::Animation::ClockState CurrentState { System::Windows::Media::Animation::ClockState get(); };
public System.Windows.Media.Animation.ClockState CurrentState { get; }
member this.CurrentState : System.Windows.Media.Animation.ClockState
Public ReadOnly Property CurrentState As ClockState

属性值

时钟的当前状态:ActiveFillingStoppedThe current state of the clock: Active, Filling, or Stopped.

注解

请注意, 时钟CurrentState的属性不会告诉您它是否已暂停。Note the clock's CurrentState property doesn't tell you whether it's paused. 若要确定时钟是否暂停, 请使用IsPaused属性。To determine whether a clock is paused, use the IsPaused property.

每当CurrentStateInvalidated此属性的值发生更改时, 就会发生。The CurrentStateInvalidated occurs whenever the value of this property changes.

适用于

另请参阅