語言

Clock.CurrentTime 屬性

定義

取得此時鐘目前時間的當前迭代。

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)

屬性值

null 若此時鐘為 Stopped;否則,則為該時鐘的當前時間。

備註

使用時間軸作為計時器

時間軸的時鐘只有在有事件處理程序關聯,或(物件 AnimationClock )與屬性相關聯時才會推進。 基於這個原因(以及其他原因),不建議使用 A Timeline 作為計時器。

適用於

另請參閱