AnimationClock 类

定义

维护 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

注解

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 类的新实例。Initializes a new instance of the AnimationClock class.

属性

Controller

获取可用来启动、暂停、恢复、查找、跳过、停止或删除此 ClockClockControllerGets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock.

(继承自 Clock)
CurrentGlobalSpeed

获取时钟相对于实际时间的当前前进速率。Gets the rate at which the clock's time is currently progressing, compared to real-world time.

(继承自 Clock)
CurrentGlobalTime

获取当前全局时间,它由 WPFWPF 计时系统建立。Gets the current global time, as established by the WPFWPF timing system.

(继承自 Clock)
CurrentIteration

获取此时钟的当前迭代。Get the current iteration of this clock.

(继承自 Clock)
CurrentProgress

获取此 Clock 在其当前迭代中的当前进度。Gets the current progress of this Clock within its current iteration.

(继承自 Clock)
CurrentState

获取指示时钟当前处于 ActiveFilling 还是 Stopped 状态的值。Gets a value indicating whether the clock is currently Active, Filling, or Stopped.

(继承自 Clock)
CurrentTime

在此时钟的当前迭代中获取它的当前时间。Gets this clock's current time within its current iteration.

(继承自 Clock)
Dispatcher

获取与此 Dispatcher 关联的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(继承自 DispatcherObject)
HasControllableRoot

获取一个值,该值指示此 Clock 是否为可控制的时钟树的一部分。Gets a value that indicates whether this Clock is part of a controllable clock tree.

(继承自 Clock)
IsPaused

获取指示此 Clock 或其任何父级是否已暂停的值。Gets a value that indicates whether this Clock, or any of its parents, is paused.

(继承自 Clock)
NaturalDuration

获取此时钟的 Timeline 的自然持续时间。Gets the natural duration of this clock's Timeline.

(继承自 Clock)
Parent

获取此时钟的父时钟。Gets the clock that is the parent of this clock.

(继承自 Clock)
Timeline

获取描述此时钟的行为的 AnimationTimelineGets the AnimationTimeline that describes this clock's behavior.

方法

CheckAccess()

确定调用线程是否可以访问此 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(继承自 DispatcherObject)
DiscontinuousTimeMovement()

在派生类中实现后,每当时钟重复、跳过或查找时就会调用它。When implemented in a derived class, will be invoked whenever a clock repeats, skips, or seeks.

(继承自 Clock)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetCanSlip()

返回 Clock 是否具有可能需要与计时系统同步的自己的外部时间源。Returns whether the Clock has its own external time source, which may require synchronization with the timing system.

(继承自 Clock)
GetCurrentTimeCore()

在此时钟的当前迭代中获取它的当前时间。Gets this clock's current time within its current iteration.

(继承自 Clock)
GetCurrentValue(Object, Object)

获取 AnimationClock 的当前输出值。Gets the current output value of the AnimationClock.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
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.

(继承自 Clock)
Stopped()

在派生类中实现后,每当使用 Stop() 方法停止时钟时,就会调用它。When implemented in a derived class, will be invoked whenever a clock is stopped using the Stop() method.

(继承自 Clock)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
VerifyAccess()

强制调用线程具有此 DispatcherObject 的访问权限。Enforces that the calling thread has access to this DispatcherObject.

(继承自 DispatcherObject)

事件

Completed

当此时钟完全播放完毕时发生。Occurs when this clock has completely finished playing.

(继承自 Clock)
CurrentGlobalSpeedInvalidated

在更新时钟速度时发生。Occurs when the clock's speed is updated.

(继承自 Clock)
CurrentStateInvalidated

当更新时钟的 CurrentState 属性时发生。Occurs when the clock's CurrentState property is updated.

(继承自 Clock)
CurrentTimeInvalidated

当此时钟的 CurrentTime 变为无效时发生。Occurs when this clock's CurrentTime becomes invalid.

(继承自 Clock)
RemoveRequested

当对此 Remove() 或其父时钟之一调用 Clock 方法时发生。Occurs when the Remove() method is called on this Clock or one of its parent clocks.

(继承自 Clock)

适用于

另请参阅