Clock.CurrentState Property


Gets a value indicating whether the clock is currently Active, Filling, or Stopped.

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

public ClockState CurrentState { get; }

Property Value

Type: System.Windows.Media.Animation.ClockState

The current state of the clock: Active, Filling, or Stopped.

Note the clock's CurrentState property doesn't tell you whether it's paused. To determine whether a clock is paused, use the IsPaused property.

The CurrentStateInvalidated occurs whenever the value of this property changes.

.NET Framework
Available since 3.0
Return to top