ClockState 枚举

定义

描述时间线的 Clock 对象的可能状态。Describes the potential states of a timeline's Clock object.

public enum class ClockState
public enum ClockState
type ClockState = 
Public Enum ClockState
继承
ClockState

字段

Active 0

当前 Clock 的时间更改与其父项的时间更改有直接关系。The current Clock time changes in direct relation to that of its parent. 如果时间线是一个动画,那么这会主动影响目标属性,这样,它们的值可能随时间(时间采样点)变化而变化。If the timeline is an animation, it is actively affecting targeted properties, so their value may change from tick (a sampling point in time) to tick. 如果时间线具有子项,那么这些子项可以是 ActiveFillingStoppedIf the timeline has children, they may be Active, Filling, or Stopped.

Filling 1

Clock 计时将继续,但不会与其父项计时同步更改。The Clock timing continues, but does not change in relation to that of its parent. 如果时间线是一个动画,那么这会主动影响目标属性,但是,它们的值不会随时间变化而变化。If the timeline is an animation, it is actively affecting targeted properties, but its values don't change from tick to tick. 如果时间线具有子项,那么这些子项可以是 ActiveFillingStoppedIf the timeline has children, they may be Active, Filling, or Stopped.

Stopped 2

Clock 计时暂停,这使时钟的当前时间和进度值未定义。The Clock timing is halted, making the clock's current time and progress values undefined. 如果此时间线是一个动画,那么它不会再影响目标属性。If this timeline is an animation, it no longer affects targeted properties. 如果此时间线具有子项,它们也可以是 StoppedIf this timeline has children, they are also Stopped.

注解

请注意ClockState , 不指示时钟是否暂停, 或时间的流动方向。Note that ClockState does not indicate whether a clock is paused or the direction in which time is flowing.

这些说明依赖于计时周期的概念;有关详细说明, 请参阅动画和计时系统概述These explanations rely on the concept of ticks; for a detailed explanation see the Animation and Timing System Overview.

适用于

另请参阅