PauseStoryboard 类

定义

暂停 Storyboard 的触发器操作。A trigger action that pauses a Storyboard.

public ref class PauseStoryboard sealed : System::Windows::Media::Animation::ControllableStoryboardAction
public sealed class PauseStoryboard : System.Windows.Media.Animation.ControllableStoryboardAction
type PauseStoryboard = class
    inherit ControllableStoryboardAction
Public NotInheritable Class PauseStoryboard
Inherits ControllableStoryboardAction
继承

注解

PauseStoryboard 与或一起使用 EventTrigger Trigger 来暂停情节提要。Use a PauseStoryboard with an EventTrigger or a Trigger to pause a Storyboard.

PauseStoryboard 仅在开始) 时,才影响处于 Storyboard 活动状态的 (StoryboardPauseStoryboard only affects a Storyboard when it is active (after the Storyboard starts).

若要控制 StoryboardPauseStoryboard 必须引用控制该 Name BeginStoryboard 的的 StoryboardTo control a Storyboard, the PauseStoryboard must reference the Name of the BeginStoryboard that controls that Storyboard. 有关示例,请参阅 如何:使用事件触发器来控制演示图板See How to: Use Event Triggers to Control a Storyboard After It Starts for an example.

开始暂停的动画Beginning a Paused Animation

BeginStoryboard 操作在暂停后触发时,它似乎会恢复并重新启动。When a BeginStoryboard action is triggered after it has been paused, it appears to resume and restart. 但实际上不会发生这种情况:该 BeginStoryboard 操作实际会自行替换为未暂停版本。That's not what actually happens, however: the BeginStoryboard action actually replaces itself with an unpaused version. 每次 BeginStoryboard 触发操作时,都会为其情节提要创建时钟对象。Each time a BeginStoryboard action is triggered, clock objects are created for its storyboard. 这些时钟会分配给它们的动画属性。These clocks are distributed to the properties they animate. 因此,当 BeginStoryboard 再次触发时,它不会重新启动其时钟,而是将其替换为新的时钟。So, when a BeginStoryboard is triggered again, it doesn't restart its clocks, it replaces them with new clocks.

构造函数

PauseStoryboard()

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

属性

BeginStoryboardName

获取或设置将你想要的 Storyboard 启动为交互式控制的 BeginStoryboardNameGets or sets the Name of the BeginStoryboard that began the Storyboard you want to interactively control.

(继承自 ControllableStoryboardAction)
DependencyObjectType

获取 DependencyObjectType 包装此实例的 CLR 类型的。Gets the DependencyObjectType that wraps the CLR type of this instance.

(继承自 DependencyObject)
Dispatcher

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

(继承自 DispatcherObject)
IsSealed

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

(继承自 DependencyObject)

方法

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)
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)
Equals(Object)

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

(继承自 DependencyObject)
GetHashCode()

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

(继承自 DependencyObject)
GetLocalValueEnumerator()

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

(继承自 DependencyObject)
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)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

每当更新此 DependencyObject 的任何依赖属性的有效值时调用。Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. 更改的特定依赖属性将在事件数据中报告。The specific dependency property that changed is reported in the event data.

(继承自 DependencyObject)
ReadLocalValue(DependencyProperty)

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

(继承自 DependencyObject)
SetCurrentValue(DependencyProperty, Object)

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

(继承自 DependencyObject)
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)
ToString()

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

(继承自 Object)
VerifyAccess()

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

(继承自 DispatcherObject)

适用于

另请参阅