ClockController 类

定义

以交互方式控制 ClockInteractively controls a Clock.

public ref class ClockController sealed : System::Windows::Threading::DispatcherObject
public sealed class ClockController : System.Windows.Threading.DispatcherObject
type ClockController = class
    inherit DispatcherObject
Public NotInheritable Class ClockController
Inherits DispatcherObject
继承
ClockController

注解

使用以交互方式开始、暂停、恢复、查找、跳过、停止和Clock删除。 ClockControllerUse a ClockController to interactively begin, pause, resume, seek, skip, stop, and remove a Clock. 只能以交互方式控制根级时钟。You can only interactively control root-level clocks.

属性

Clock

获取由此 Clock 控制的 ClockControllerGets the Clock controlled by this ClockController.

Dispatcher

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

(继承自 DispatcherObject)
SpeedRatio

获取或设置目标 Clock 的交互速度。Gets or sets the interactive speed of the target Clock.

方法

Begin()

设置目标 Clock,以在下一时钟周期开始。Sets the target Clock to begin at the next tick.

CheckAccess()

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

(继承自 DispatcherObject)
Equals(Object)

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

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

停止处理目标 ClockStops the target Clock from progressing.

Remove()

从进行动画处理的属性中移除与此 Clock 关联的 ClockControllerRemoves the Clock associated with this ClockController from the properties it animates. 该时钟及其子时钟将不再影响这些属性。The clock and its child clocks will no longer affect these properties.

Resume()

启用之前已暂停的 Clock,以便继续处理。Enables a Clock that was previously paused to resume progressing.

Seek(TimeSpan, TimeSeekOrigin)

在下一个计时周期开始时,根据指定的量查找目标 ClockSeeks the target Clock by the specified amount when the next tick occurs. 如果目标时钟已停止,则查找会使它再次处于活动状态。If the target clock is stopped, seeking makes it active again.

SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin)

立即根据指定的量查找目标 ClockSeeks the target Clock by the specified amount immediately. 如果目标时钟已停止,则查找会使它再次处于活动状态。If the target clock is stopped, seeking makes it active again.

SkipToFill()

将目标 Clock 的当前时间向前调至其活动周期的结束时间。Advances the current time of the target Clock to the end of its active period.

Stop()

停止目标 ClockStops the target Clock.

ToString()

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

(继承自 Object)
VerifyAccess()

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

(继承自 DispatcherObject)

适用于

另请参阅