Clock.CurrentTime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets this clock's current time within its current iteration.
public:
property Nullable<TimeSpan> CurrentTime { Nullable<TimeSpan> get(); };
public TimeSpan? CurrentTime { get; }
member this.CurrentTime : Nullable<TimeSpan>
Public ReadOnly Property CurrentTime As Nullable(Of TimeSpan)
Property Value
null
if this clock is Stopped; otherwise, the current time of this clock.
Remarks
Using a Timeline as a Timer
A timeline's clock will only progress when there's an event handler 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.
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.