Clock::CurrentTime Property

 

Gets this clock's current time within its current iteration.

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

public:
property Nullable<TimeSpan> CurrentTime {
	Nullable<TimeSpan> get();
}

Property Value

Type: System::Nullable<TimeSpan>

null if this clock is Stopped; otherwise, the current time of this clock.

A timeline's clock will only progress when there's an event hander associated with it or (in the case of an AnimationClock object) it is associated with a property. For this reason (and others), it's not recommended that you use a Timeline as a timer.

.NET Framework
Available since 3.0
Return to top
Show: