AnimationClock AnimationClock AnimationClock AnimationClock Class

定義

維護 AnimationTimeline 的執行階段狀態,並處理其輸出值。Maintains the run-time state of an AnimationTimeline and processes its output values.

public ref class AnimationClock : System::Windows::Media::Animation::Clock
public class AnimationClock : System.Windows.Media.Animation.Clock
type AnimationClock = class
    inherit Clock
Public Class AnimationClock
Inherits Clock
繼承

備註

AnimationClock物件是從AnimationTimeline物件產生。AnimationClock objects are generated from AnimationTimeline objects. AnimationTimeline描述動畫的輸出值、持續時間、開始時間、結束時間和其他基本動畫資訊。An AnimationTimeline describes an animation's output values, duration, begin time, end time, and other fundamental animation information. AnimationClock處理AnimationTimeline物件所描述的動畫值。An AnimationClock processes the animation values described by an AnimationTimeline object.

建構函式

AnimationClock(AnimationTimeline) AnimationClock(AnimationTimeline) AnimationClock(AnimationTimeline) AnimationClock(AnimationTimeline)

初始化 AnimationClock 類別的新執行個體。Initializes a new instance of the AnimationClock class.

屬性

Controller Controller Controller Controller

取得 ClockController,可用於啟動、暫停、繼續、搜尋、略過、停止或移除這個 ClockGets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock.

(Inherited from Clock)
CurrentGlobalSpeed CurrentGlobalSpeed CurrentGlobalSpeed CurrentGlobalSpeed

取得時鐘目前行進速率,與實際時間相比較。Gets the rate at which the clock's time is currently progressing, compared to real-world time.

(Inherited from Clock)
CurrentGlobalTime CurrentGlobalTime CurrentGlobalTime CurrentGlobalTime

取得目前全域時間,由 WPFWPF 計時系統建立。Gets the current global time, as established by the WPFWPF timing system.

(Inherited from Clock)
CurrentIteration CurrentIteration CurrentIteration CurrentIteration

取得這個時鐘的目前反覆項目。Get the current iteration of this clock.

(Inherited from Clock)
CurrentProgress CurrentProgress CurrentProgress CurrentProgress

取得這個 Clock 在其目前反覆項目內的目前進度。Gets the current progress of this Clock within its current iteration.

(Inherited from Clock)
CurrentState CurrentState CurrentState CurrentState

取得值,指出時鐘目前為 ActiveFillingStoppedGets a value indicating whether the clock is currently Active, Filling, or Stopped.

(Inherited from Clock)
CurrentTime CurrentTime CurrentTime CurrentTime

取得這個時鐘在其目前反覆項目內的目前時間。Gets this clock's current time within its current iteration.

(Inherited from Clock)
Dispatcher Dispatcher Dispatcher Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
HasControllableRoot HasControllableRoot HasControllableRoot HasControllableRoot

取得值,這個值表示這個 Clock 是否為可控制之時鐘樹狀結構的一部分。Gets a value that indicates whether this Clock is part of a controllable clock tree.

(Inherited from Clock)
IsPaused IsPaused IsPaused IsPaused

取得值,這個值表示這個 Clock 或任何其父代是否暫停。Gets a value that indicates whether this Clock, or any of its parents, is paused.

(Inherited from Clock)
NaturalDuration NaturalDuration NaturalDuration NaturalDuration

取得這個時鐘之 Timeline 的自然持續時間。Gets the natural duration of this clock's Timeline.

(Inherited from Clock)
Parent Parent Parent Parent

取得這個時鐘的父時鐘。Gets the clock that is the parent of this clock.

(Inherited from Clock)
Timeline Timeline Timeline Timeline

取得描述這個時鐘之行為的 AnimationTimelineGets the AnimationTimeline that describes this clock's behavior.

方法

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
DiscontinuousTimeMovement() DiscontinuousTimeMovement() DiscontinuousTimeMovement() DiscontinuousTimeMovement()

在衍生類別中實作時,每當時鐘重複、略過或搜尋,就會叫用 (Invoke)。When implemented in a derived class, will be invoked whenever a clock repeats, skips, or seeks.

(Inherited from Clock)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCanSlip() GetCanSlip() GetCanSlip() GetCanSlip()

傳回值指出 Clock 是否具有自己的外部時間來源,該來源可能需要與計時系統同步。Returns whether the Clock has its own external time source, which may require synchronization with the timing system.

(Inherited from Clock)
GetCurrentTimeCore() GetCurrentTimeCore() GetCurrentTimeCore() GetCurrentTimeCore()

取得這個時鐘在其目前反覆項目內的目前時間。Gets this clock's current time within its current iteration.

(Inherited from Clock)
GetCurrentValue(Object, Object) GetCurrentValue(Object, Object) GetCurrentValue(Object, Object) GetCurrentValue(Object, Object)

取得 AnimationClock 的目前輸出值。Gets the current output value of the AnimationClock.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
SpeedChanged() SpeedChanged() SpeedChanged() SpeedChanged()

在衍生類別中實作時,每當時鐘啟動、略過、暫停、繼續或修改時鐘的 SpeedRatio 時,就會叫用。When implemented in a derived class, will be invoked whenever a clock begins, skips, pauses, resumes, or when the clock's SpeedRatio is modified.

(Inherited from Clock)
Stopped() Stopped() Stopped() Stopped()

在衍生類別中實作時,每當使用 Stop() 方法停止時鐘時,就會叫用。When implemented in a derived class, will be invoked whenever a clock is stopped using the Stop() method.

(Inherited from Clock)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

事件

Completed Completed Completed Completed

當這個時鐘完成播放時發生。Occurs when this clock has completely finished playing.

(Inherited from Clock)
CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated

時鐘速度更新時發生。Occurs when the clock's speed is updated.

(Inherited from Clock)
CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated

時鐘的 CurrentState 屬性更新時發生。Occurs when the clock's CurrentState property is updated.

(Inherited from Clock)
CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated

當這個時鐘的 CurrentTime 變成無效時發生。Occurs when this clock's CurrentTime becomes invalid.

(Inherited from Clock)
RemoveRequested RemoveRequested RemoveRequested RemoveRequested

當在這個 Remove() 或它的一個父時鐘上呼叫 Clock 方法時發生。Occurs when the Remove() method is called on this Clock or one of its parent clocks.

(Inherited from Clock)

適用於

另請參閱