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將與或Trigger搭配使用, 以暫停分鏡腳本。 EventTriggerUse a PauseStoryboard with an EventTrigger or a Trigger to pause a Storyboard.

PauseStoryboard只有Storyboard當作用中 (在Storyboard開始之後) 時, 才會影響。PauseStoryboard only affects a Storyboard when it is active (after the Storyboard starts).

若要控制Storyboard PauseStoryboard , Name 必須參考Storyboard控制項的。 BeginStoryboardTo control a Storyboard, the PauseStoryboard must reference the Name of the BeginStoryboard that controls that Storyboard. 請參閱How to:在啟動後, 使用事件觸發程式來控制分鏡腳本的範例。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 類別的新執行個體。Initializes a new instance of the PauseStoryboard class.



取得或設定 BeginStoryboardName,開始您想要以互動方式控制的 StoryboardGets or sets the Name of the BeginStoryboard that began the Storyboard you want to interactively control.

(繼承來源 ControllableStoryboardAction)

取得包裝此執行個體之 DependencyObjectType 型別的 CLRCLRGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(繼承來源 DependencyObject)

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。Gets a value that indicates whether this instance is currently sealed (read-only).

(繼承來源 DependencyObject)



判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier.

(繼承來源 DependencyObject)

清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey.

(繼承來源 DependencyObject)

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 完成方式是叫用存在於呼叫 CoerceValueCallback 之相依性屬性的屬性中繼資料中所指定的任何 DependencyObject 函式。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(繼承來源 DependencyObject)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(繼承來源 DependencyObject)

取得這個 DependencyObject 的雜湊碼。Gets a hash code for this DependencyObject.

(繼承來源 DependencyObject)

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(繼承來源 DependencyObject)

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(繼承來源 DependencyObject)

重新評估指定相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property.

(繼承來源 DependencyObject)

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)

每當這個 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)

傳回相依性屬性的區域值 (如果存在)。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)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(繼承來源 DependencyObject)

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)