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

获取可用来启动、暂停、恢复、查找、跳过、停止或删除此 ClockClockControllerGets 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

获取指示时钟当前处于 ActiveFilling 还是 Stopped 状态的值。Gets 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()

在派生类中实现后,每当时钟重复、跳过或查找时就会调用它。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 的浅表副本。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)

适用于

另请参阅