Storyboard 类

定义

一个容器时间线,该时间线为子动画提供对象和属性确定信息。A container timeline that provides object and property targeting information for its child animations.

public ref class Storyboard : System::Windows::Media::Animation::ParallelTimeline
public class Storyboard : System.Windows.Media.Animation.ParallelTimeline
type Storyboard = class
    inherit ParallelTimeline
Public Class Storyboard
Inherits ParallelTimeline
继承

注解

以交互方式控制情节提要Interactively Controlling Storyboards

可控制的情节提要可以暂停、恢复、查找、停止和删除。A controllable storyboard can pause, resume, seek, stop, and be removed. 若要使 storyboard 能够控制标记, 请指定创建Name它的BeginStoryboard对象的属性; 例如, 有关示例, 请参阅如何:在情节提要启动后, 使用事件触发器控制情节提要。To make a storyboard controllable in markup, you specify the Name property of the BeginStoryboard object that creates it; for an example, see How to: Use Event Triggers to Control a Storyboard After It Starts. 若要使 storyboard 能够控制代码, 必须使用情节提要的Begin方法的适当重载, 并指定true以使其可控制。To make a storyboard controllable in code, you must use the appropriate overload of the storyboard's Begin method and specify true to make it controllable. 有关示例,请参见 如何:在演示图板启动后对其进行控制。For an example, see How to: Control a Storyboard After It Starts.

数据绑定和动画处理时间线Data Binding and Animating Timelines

大多数时间线属性可以是数据绑定的或动态的;但是, 由于计时系统的工作方式, 数据绑定或动画时间线的行为与其他数据绑定或动画对象的行为不同。Most timeline properties can be data bound or animated; however, because of the way the timing system works, data bound or animated timelines do not behave like other data bound or animated objects. 若要了解其行为, 有助于理解激活时间线的方式。To understand their behavior, it helps to understand what it means to activate a timeline.

激活时间线时, 将生成时间线及其子时间线。When a timeline is activated, copies are made of the timeline and its child timelines. 这些副本会被冻结 (变为只读), 并Clock从它们创建对象。These copies are frozen (made read-only) and Clock objects are created from them. 这些时钟将执行对目标属性进行动画处理的实际工作。These clocks do the actual work of animating the targeted properties. 如果时间线是数据绑定的或动态的, 则在创建其时钟时, 将生成其当前值的快照。If a timeline is data bound or animated, a snapshot of its current values is made when its clock is created. 即使原始时间线可能会继续更改, 时钟也不会更改。Even though the original timeline might continue to change, its clock does not.

对于反映数据绑定或动画更改的时间线, 必须重新创建其时钟。For a timeline to reflect data binding or animation changes, its clock must be re-created. 不会自动为您重新创建时钟。Clocks are not re-created for you automatically. 以下是应用时间线更改的几种方法:The following are several ways to apply timeline changes:

  • 如果时间线是或属于Storyboard, 则可以通过BeginStoryboard使用或Begin方法重新应用它的情节提要, 使其反映更改。If the timeline is or belongs to a Storyboard, you can make it reflect changes by reapplying its storyboard using a BeginStoryboard or the Begin method. 这还会产生重新启动动画的附带影响。This has the side effect of also restarting the animation. 在代码中, 可以使用Seek方法将演示图板前进到其之前的位置。In code, you can use the Seek method to advance the storyboard back to its previous position.

  • 如果使用BeginAnimation方法将动画直接应用到属性, 请再次BeginAnimation调用方法并向其传递已修改的动画。If you applied an animation directly to a property using the BeginAnimation method, call the BeginAnimation method again and pass it the animation that has been modified.

  • 如果正在直接使用时钟级别, 请创建并应用新的时钟集, 并使用它们来替换以前创建的时钟集。If you are working directly at the clock level, create and apply a new set of clocks and use them to replace the previous set of created clocks.

有关数据绑定动画的示例, 请参阅主要曲线动画示例For an example of a data bound animation, see Key Spline Animation Sample .

构造函数

Storyboard()

初始化 Storyboard 类的新实例。Initializes a new instance of the Storyboard class.

字段

TargetNameProperty

标识 TargetName 附加属性。Identifies the TargetName attached property.

TargetProperty

标识 Target 附加属性。Identifies the Target attached property.

TargetPropertyProperty

标识 TargetProperty 附加属性。Identifies the TargetProperty attached property.

属性

AccelerationRatio

获取或设置一个值,该值指定在将时间消逝从零加速到其最大速率过程中所占用时间线的 Duration 的百分比。Gets or sets a value specifying the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate.

(继承自 Timeline)
AutoReverse

获取或设置一个值,该值指示时间线在完成向前迭代后是否按相反的顺序播放。Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.

(继承自 Timeline)
BeginTime

获取或设置此 Timeline 应开始的时间。Gets or sets the time at which this Timeline should begin.

(继承自 Timeline)
CanFreeze

获取一个值,该值指示是否可将对象变为不可修改。Gets a value that indicates whether the object can be made unmodifiable.

(继承自 Freezable)
Children

获取或设置 TimelineGroup 的直接子 Timeline 对象的集合。Gets or sets the collection of direct child Timeline objects of the TimelineGroup.

(继承自 TimelineGroup)
DecelerationRatio

获取或设置一个值,该值指定在将时间消逝从其最大速率减速到零的过程中所占用时间线的 Duration 的百分比。Gets or sets a value specifying the percentage of the timeline's Duration spent decelerating the passage of time from its maximum rate to zero.

(继承自 Timeline)
DependencyObjectType

获取对此实例的 CLRCLR 类型进行包装的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(继承自 DependencyObject)
Dispatcher

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

(继承自 DispatcherObject)
Duration

获取或设置此时间线播放的时间长度,而不是计数重复。Gets or sets the length of time for which this timeline plays, not counting repetitions.

(继承自 Timeline)
FillBehavior

获取或设置一个值,该值指定 Timeline 在活动周期结束后的行为方式。Gets or sets a value that specifies how the Timeline behaves after it reaches the end of its active period.

(继承自 Timeline)
HasAnimatedProperties

获取一个值,该值指示一个或多个 AnimationClock 对象是否与此对象的任何依赖项属性相关联。Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties.

(继承自 Animatable)
IsFrozen

获取一个值,该值指示对象当前是否可修改。Gets a value that indicates whether the object is currently modifiable.

(继承自 Freezable)
IsSealed

获取一个值,该值指示此实例当前是否为密封的(只读)。Gets a value that indicates whether this instance is currently sealed (read-only).

(继承自 DependencyObject)
Name

获取或设置此 Timeline 的名称。Gets or sets the name of this Timeline.

(继承自 Timeline)
RepeatBehavior

获取或设置此时间线的重复行为。Gets or sets the repeating behavior of this timeline.

(继承自 Timeline)
SlipBehavior

获取或设置一个值,该值指定在其中一个或多个 Timeline 子级滑动时此时间线的行为方式。Gets or sets a value that specifies how this timeline will behave when one or more of its Timeline children slips.

(继承自 ParallelTimeline)
SpeedRatio

获取或设置此 Timeline 的时间相对于其父级的前进速率。Gets or sets the rate, relative to its parent, at which time progresses for this Timeline.

(继承自 Timeline)

附加属性

Target

获取或设置应进行动画处理的对象。Gets or sets the object that should be animated.

TargetName

获取或设置要进行动画处理的对象的名称。Gets or sets the name of the object to animate. 该对象必须是 FrameworkElementFrameworkContentElementFreezableThe object must be a FrameworkElement, FrameworkContentElement, or Freezable.

方法

AddChild(Object)

向此 TimelineGroup 添加子 TimelineAdds a child Timeline to this TimelineGroup.

(继承自 TimelineGroup)
AddText(String)

将文本字符串添加为此 Timeline 的子级。Adds a text string as a child of this Timeline.

(继承自 TimelineGroup)
AllocateClock()

创建此时间线的特定类型的时钟。Creates a type-specific clock for this timeline.

(继承自 TimelineGroup)
ApplyAnimationClock(DependencyProperty, AnimationClock)

AnimationClock 应用到指定的 DependencyPropertyApplies an AnimationClock to the specified DependencyProperty. 如果该属性已进行动画处理,则使用 SnapshotAndReplace 切换行为。If the property is already animated, the SnapshotAndReplace handoff behavior is used.

(继承自 Animatable)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

AnimationClock 应用到指定的 DependencyPropertyApplies an AnimationClock to the specified DependencyProperty. 如果该属性已进行动画处理,则使用指定的 HandoffBehaviorIf the property is already animated, the specified HandoffBehavior is used.

(继承自 Animatable)
Begin()

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement)

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement, Boolean)

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement, HandoffBehavior)

使用指定的 Storyboard,将与此 HandoffBehavior 关联的动画应用到它们的目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkContentElement, HandoffBehavior, Boolean)

使用指定的 Storyboard,将与此 HandoffBehavior 关联的动画应用到它们的目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkElement)

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkElement, Boolean)

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkElement, FrameworkTemplate)

将与此 Storyboard 关联的动画应用到它们在指定模板内的目标并启动它们。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, Boolean)

将与此 Storyboard 关联的动画应用到它们在指定模板内的目标并启动它们。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior)

将与此 Storyboard 关联的动画应用到它们在指定模板内的目标并启动它们。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior, Boolean)

将与此 Storyboard 关联的动画应用到它们在指定模板内的目标并启动它们。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, HandoffBehavior)

使用指定的 Storyboard,将与此 HandoffBehavior 关联的动画应用到它们的目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkElement, HandoffBehavior, Boolean)

将与此 Storyboard 关联的动画应用到其目标并启动它们。Applies the animations associated with this Storyboard to their targets and initiates them.

BeginAnimation(DependencyProperty, AnimationTimeline)

将动画应用于指定 DependencyPropertyApplies an animation to the specified DependencyProperty. 动画会在呈现下一帧时启动。The animation is started when the next frame is rendered. 如果指定属性已进行动画处理,则使用 SnapshotAndReplace 切换行为。If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

(继承自 Animatable)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

将动画应用于指定 DependencyPropertyApplies an animation to the specified DependencyProperty. 动画会在呈现下一帧时启动。The animation is started when the next frame is rendered. 如果指定的属性已进行动画处理,则使用指定的 HandoffBehaviorIf the specified property is already animated, the specified HandoffBehavior is used.

(继承自 Animatable)
CheckAccess()

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

(继承自 DispatcherObject)
ClearValue(DependencyProperty)

清除属性的本地值。Clears the local value of a property. 要清除的属性由 DependencyProperty 标识符指定。The property to be cleared is specified by a DependencyProperty identifier.

(继承自 DependencyObject)
ClearValue(DependencyPropertyKey)

清除只读属性的本地值。Clears the local value of a read-only property. 要清除的属性由 DependencyPropertyKey 指定。The property to be cleared is specified by a DependencyPropertyKey.

(继承自 DependencyObject)
Clone()

创建此 Storyboard 的可修改克隆,从而深度复制此对象的值。Creates a modifiable clone of this Storyboard, making deep copies of this object's values. 在复制依赖项属性时,此方法会复制资源引用和数据绑定(但可能不再解析),但不复制动画或其当前值。When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

CloneCore(Freezable)

使用基(未经过动画处理的)属性值使该实例成为指定 Freezable 的克隆(深层复制)。Makes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values.

(继承自 Freezable)
CloneCurrentValue()

创建此 ParallelTimeline 对象的可修改复本,从而深度复制此对象的当前值。Creates a modifiable clone of this ParallelTimeline object, making deep copies of this object's current values. 不复制资源引用、数据绑定和动画,而是复制其当前值。Resource references, data bindings, and animations are not copied, but their current values are.

(继承自 ParallelTimeline)
CloneCurrentValueCore(Freezable)

使用当前属性值使该实例成为指定 Freezable 的可修改克隆(深层复制)。Makes the instance a modifiable clone (deep copy) of the specified Freezable using current property values.

(继承自 Freezable)
CoerceValue(DependencyProperty)

对指定依赖属性的值进行强制。Coerces the value of the specified dependency property. 通过对调用方 DependencyObject 上存在的依赖属性的属性元数据中所指定的任何 CoerceValueCallback 函数进行调用来完成此操作。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(继承自 DependencyObject)
CreateClock()

使用此实例初始化新的 ClockGroup 对象。Instantiates a new ClockGroup object, using this instance.

(继承自 TimelineGroup)
CreateClock(Boolean)

从此 Clock 创建一个新的 Timeline 并指定新的 Clock 是否可以控制。Creates a new Clock from this Timeline and specifies whether the new Clock is controllable. 如果此 Timeline 含有子级,则创建时钟树时将此 Timeline 作为根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

(继承自 Timeline)
CreateInstance()

初始化 Freezable 类的新实例。Initializes a new instance of the Freezable class.

(继承自 Freezable)
CreateInstanceCore()

创建 Storyboard 类的新实例。Creates a new instance of the Storyboard class.

Equals(Object)

确定提供的 DependencyObject 是否等效于当前 DependencyObjectDetermines whether a provided DependencyObject is equivalent to the current DependencyObject.

(继承自 DependencyObject)
Freeze()

使当前对象不可修改,并且将其 IsFrozen 属性设置为 trueMakes the current object unmodifiable and sets its IsFrozen property to true.

(继承自 Freezable)
FreezeCore(Boolean)

使此 Timeline 成为不可修改的,或确定是否可使其成为不可修改的。Makes this Timeline unmodifiable or determines whether it can be made unmodifiable.

(继承自 Timeline)
GetAnimationBaseValue(DependencyProperty)

返回指定的 DependencyProperty 的未经过动画处理的值。Returns the non-animated value of the specified DependencyProperty.

(继承自 Animatable)
GetAsFrozen()

使用基(未经过动画处理的)属性值创建 Freezable 的冻结副本。Creates a frozen copy of the Freezable, using base (non-animated) property values. 由于副本已冻结,因此将通过引用复制任何冻结的子对象。Because the copy is frozen, any frozen sub-objects are copied by reference.

(继承自 Freezable)
GetAsFrozenCore(Freezable)

使此实例成为指定 Timeline 对象的副本。Makes this instance a clone of the specified Timeline object.

(继承自 Timeline)
GetCurrentGlobalSpeed()

检索为此 CurrentGlobalSpeed 创建的 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentGlobalSpeed(FrameworkContentElement)

检索为此 CurrentGlobalSpeed 创建的 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentGlobalSpeed(FrameworkElement)

检索为此 CurrentGlobalSpeed 创建的 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentIteration()

检索为此 CurrentIteration 创建的 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentIteration(FrameworkContentElement)

检索为此 CurrentIteration 创建的 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentIteration(FrameworkElement)

检索为此 CurrentIteration 创建的 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentProgress()

检索为此 CurrentProgress 创建的 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentProgress(FrameworkContentElement)

检索为此 CurrentProgress 创建的 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentProgress(FrameworkElement)

检索为此 CurrentProgress 创建的 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentState()

检索为此 CurrentState 创建的 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentState(FrameworkContentElement)

检索为此 CurrentState 创建的 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentState(FrameworkElement)

检索为此 CurrentState 创建的 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentTime()

检索为此 CurrentTime 创建的 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentTime(FrameworkContentElement)

检索为此 CurrentTime 创建的 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentTime(FrameworkElement)

检索为此 CurrentTime 创建的 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentValueAsFrozen()

使用当前属性值创建 Freezable 的冻结副本。Creates a frozen copy of the Freezable using current property values. 由于副本已冻结,因此将通过引用复制任何冻结的子对象。Because the copy is frozen, any frozen sub-objects are copied by reference.

(继承自 Freezable)
GetCurrentValueAsFrozenCore(Freezable)

使此实例成为指定 Timeline 的冻结复本。Makes this instance a frozen clone of the specified Timeline. 不复制资源引用、数据绑定和动画,而是复制其当前值。Resource references, data bindings, and animations are not copied, but their current values are.

(继承自 Timeline)
GetHashCode()

获取此 DependencyObject 的哈希代码。Gets a hash code for this DependencyObject.

(继承自 DependencyObject)
GetIsPaused()

检索一个值,该值指示为此 Clock 创建的 Storyboard 是否已暂停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetIsPaused(FrameworkContentElement)

检索一个值,该值指示为此 Clock 创建的 Storyboard 是否已暂停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetIsPaused(FrameworkElement)

检索一个值,该值指示为此 Clock 创建的 Storyboard 是否已暂停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetLocalValueEnumerator()

创建一个专用的枚举数,用于确定哪些依赖项属性在此 DependencyObject 上具有以本地方式设置的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(继承自 DependencyObject)
GetNaturalDuration(Clock)

返回此 Timeline 单次迭代的长度。Returns the length of a single iteration of this Timeline.

(继承自 Timeline)
GetNaturalDurationCore(Clock)

从指定的 Clock 返回自然持续时间(单个迭代的持续时间)。Return the natural duration (duration of a single iteration) from a specified Clock.

(继承自 ParallelTimeline)
GetTarget(DependencyObject)

检索指定的 TargetTimeline 值。Retrieves the Target value of the specified Timeline.

GetTargetName(DependencyObject)

检索指定的 TargetNameTimeline 值。Retrieves the TargetName value of the specified Timeline.

GetTargetProperty(DependencyObject)

检索指定的 TargetPropertyTimeline 值。Retrieves the TargetProperty value of the specified Timeline.

GetType()

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

(继承自 Object)
GetValue(DependencyProperty)

DependencyObject 的此实例返回依赖属性的当前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(继承自 DependencyObject)
InvalidateProperty(DependencyProperty)

重新评估指定依赖属性的有效值。Re-evaluates the effective value for the specified dependency property.

(继承自 DependencyObject)
MemberwiseClone()

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

(继承自 Object)
OnChanged()

修改当前 Freezable 对象时调用。Called when the current Freezable object is modified.

(继承自 Freezable)
OnFreezablePropertyChanged(DependencyObject, DependencyObject)

确保为刚刚设置的 DependencyObjectType 数据成员建立适当的上下文指针。Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.

(继承自 Freezable)
OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(继承自 Freezable)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

重写 OnPropertyChanged(DependencyPropertyChangedEventArgs)DependencyObject 实现,以同时调用任何响应类型 Freezable 不断变化的依赖属性的 Changed 处理程序。Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.

(继承自 Freezable)
Pause()

暂停为此 Clock 创建的 StoryboardPauses the Clock that was created for this Storyboard.

Pause(FrameworkContentElement)

暂停与此 Clock 关联的指定 FrameworkContentElementStoryboardPauses the Clock of the specified FrameworkContentElement associated with this Storyboard.

Pause(FrameworkElement)

暂停与此 Clock 关联的指定 FrameworkElementStoryboardPauses the Clock of the specified FrameworkElement associated with this Storyboard.

ReadLocalValue(DependencyProperty)

如果存在,则返回依赖属性的本地值。Returns the local value of a dependency property, if it exists.

(继承自 DependencyObject)
ReadPreamble()

确保正在从有效的线程访问 FreezableEnsures that the Freezable is being accessed from a valid thread. Freezable 的继承者必须在任何 API 一开始读取不属于依赖项对象的数据成员时调用此方法。Inheritors of Freezable must call this method at the beginning of any API that reads data members that are not dependency properties.

(继承自 Freezable)
Remove()

删除为此 Clock 创建的 Storyboard对象Removes the Clock objects that were created for this Storyboard. 无论其 Storyboard 设置如何,属于此 FillBehavior 的动画将不再影响曾尤其进行动画处理的属性。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Remove(FrameworkContentElement)

删除为此 Storyboard 创建的 Clock 对象Removes the Clock objects that were created for this Storyboard. 无论其 Storyboard 设置如何,属于此 FillBehavior 的动画将不再影响曾尤其进行动画处理的属性。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Remove(FrameworkElement)

删除为此 Storyboard 创建的 Clock 对象Removes the Clock objects that were created for this Storyboard. 无论其 Storyboard 设置如何,属于此 FillBehavior 的动画将不再影响曾尤其进行动画处理的属性。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Resume()

恢复为此 Clock 创建的 StoryboardResumes the Clock that was created for this Storyboard.

Resume(FrameworkContentElement)

恢复为此 Clock 创建的 StoryboardResumes the Clock that was created for this Storyboard.

Resume(FrameworkElement)

恢复为此 Clock 创建的 StoryboardResumes the Clock that was created for this Storyboard.

Seek(FrameworkContentElement, TimeSpan, TimeSeekOrigin)

将此 Storyboard 定位到指定位置。Seeks this Storyboard to the specified position. Storyboard 在时钟下一次走动时执行请求的定位操作。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(FrameworkElement, TimeSpan, TimeSeekOrigin)

将此 Storyboard 定位到指定位置。Seeks this Storyboard to the specified position. Storyboard 在时钟下一次走动时执行请求的定位操作。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(TimeSpan)

将此 Storyboard 定位到指定位置。Seeks this Storyboard to the specified position. Storyboard 在时钟下一次走动时执行请求的定位操作。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(TimeSpan, TimeSeekOrigin)

将此 Storyboard 定位到指定位置。Seeks this Storyboard to the specified position. Storyboard 在时钟下一次走动时执行请求的定位操作。The Storyboard performs the requested seek when the next clock tick occurs.

SeekAlignedToLastTick(FrameworkContentElement, TimeSpan, TimeSeekOrigin)

立即将此 Storyboard 指定到新位置(同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(FrameworkElement, TimeSpan, TimeSeekOrigin)

立即将此 Storyboard 指定到新位置(同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(TimeSpan)

立即将此 Storyboard 指定到新位置(同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin)

立即将此 Storyboard 指定到新位置(同步)。Seeks this Storyboard to a new position immediately (synchronously).

SetCurrentValue(DependencyProperty, Object)

设置依赖属性的值而不更改其值源。Sets the value of a dependency property without changing its value source.

(继承自 DependencyObject)
SetSpeedRatio(Double)

设置为此 Clock 创建的 Storyboard 的交互速度比。Sets the interactive speed ratio for the Clock that was created for this Storyboard.

SetSpeedRatio(FrameworkContentElement, Double)

设置为此 Storyboard 创建的 Clock 的交互式速比。Sets the interactive speed ratio of the Clock that was created for this Storyboard.

SetSpeedRatio(FrameworkElement, Double)

设置为此 Storyboard 创建的 Clock 的交互式速比。Sets the interactive speed ratio of the Clock that was created for this Storyboard.

SetTarget(DependencyObject, DependencyObject)

使指定的 Timeline 以此依赖项对象为目标。Makes the specified Timeline target the dependency object.

SetTargetName(DependencyObject, String)

使指定的 Timeline 面向具有指定名称的依赖属性。Makes the specified Timeline target the dependency object with the specified name.

SetTargetProperty(DependencyObject, PropertyPath)

使指定的 Timeline 目标成为指定的依赖属性。Makes the specified Timeline target the specified dependency property.

SetValue(DependencyProperty, Object)

设置依赖属性的本地值,该值由其依赖属性标识符指定。Sets the local value of a dependency property, specified by its dependency property identifier.

(继承自 DependencyObject)
SetValue(DependencyPropertyKey, Object)

设置一个只读依赖属性的本地值,该值由依赖属性的 DependencyPropertyKey 标识符指定。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(继承自 DependencyObject)
ShouldSerializeProperty(DependencyProperty)

返回一个值,该值指示序列化进程是否应序列化所提供的依赖属性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(继承自 DependencyObject)
SkipToFill()

将此情节提要的 Clock 当前时间提前到其有效期的末尾。Advances the current time of this storyboard's Clock to the end of its active period.

SkipToFill(FrameworkContentElement)

将此情节提要的 Clock 当前时间提前到其有效期的末尾。Advances the current time of this storyboard's Clock to the end of its active period.

SkipToFill(FrameworkElement)

将此情节提要的 Clock 当前时间提前到其有效期的末尾。Advances the current time of this storyboard's Clock to the end of its active period.

Stop()

停止为此 Storyboard 创建的 ClockStops the Clock that was created for this Storyboard.

Stop(FrameworkContentElement)

停止为此 Storyboard 创建的 ClockStops the Clock that was created for this Storyboard.

Stop(FrameworkElement)

停止为此 Storyboard 创建的 ClockStops the Clock that was created for this Storyboard.

ToString()

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

(继承自 Object)
VerifyAccess()

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

(继承自 DispatcherObject)
WritePostscript()

引发 FreezableChanged 事件并调用其 OnChanged() 方法。Raises the Changed event for the Freezable and invokes its OnChanged() method. Freezable 派生的类应在修改的类成员不存储为依赖属性的任何 API 的末尾调用此方法。Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.

(继承自 Freezable)
WritePreamble()

验证 Freezable 是否未被冻结,并且是否正在从有效的线程上下文中访问它。Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. Freezable 的继承项应当在任何 API 一开始写入不属于依赖项属性的数据成员时调用此方法。Freezable inheritors should call this method at the beginning of any API that writes to data members that are not dependency properties.

(继承自 Freezable)

事件

Changed

在修改 Freezable 或其包含的对象时发生。Occurs when the Freezable or an object it contains is modified.

(继承自 Freezable)
Completed

当此时间线完全播放完毕时发生:它将不再进入其活动周期。Occurs when this timeline has completely finished playing: it will no longer enter its active period.

(继承自 Timeline)
CurrentGlobalSpeedInvalidated

在时间线时钟的时间前进速率发生变化时发生。Occurs when the rate at which time progresses for the timeline's clock changes.

(继承自 Timeline)
CurrentStateInvalidated

更新时间线的 ClockCurrentState 属性时发生。Occurs when the CurrentState property of the timeline's Clock is updated.

(继承自 Timeline)
CurrentTimeInvalidated

更新时间线的 ClockCurrentTime 属性时发生。Occurs when the CurrentTime property of the timeline's Clock is updated.

(继承自 Timeline)
RemoveRequested

当移除为此时间线创建的时钟或其中一个父时间线时发生。Occurs when the clock created for this timeline or one of its parent timelines is removed.

(继承自 Timeline)

显式界面实现

IAddChild.AddChild(Object)

添加子对象。Adds a child object.

(继承自 TimelineGroup)
IAddChild.AddText(String)

将节点的文本内容添加到对象。Adds the text content of a node to the object.

(继承自 TimelineGroup)

适用于