StopStoryboard 類別

定義

停止 Storyboard 的觸發程序動作。

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

備註

StopStoryboard搭配 或 Trigger 使用動作 EventTrigger ,以互動方式停止 Storyboard

StopStoryboard只有在啟動) 之後 Storyboard 作用中 (,才會影響 Storyboard 。 停止分鏡腳本會 CurrentGlobalSpeedInvalidated 觸發 和 CurrentStateInvalidated 事件,但不會觸發 Completed 事件。

StopStoryboard 不會直接參考 Storyboard 。 相反地, StopStoryboard 必須參考 NameBeginStoryboard 控制 的 Storyboard 。 如需範例 ,請參閱如何:使用事件觸發程式來控制分鏡腳本

以互動方式暫停、繼續、停止或控制分鏡腳本

若要能夠以互動方式暫停、繼續或控制 Storyboard ,請設定 NameBeginStoryboard 屬性,並使用 ControllableStoryboardAction 物件 (,例如 PauseStoryboardResumeStoryboardStopStoryboard) ,藉由參考其 來控制它 NameName如果未指定 的 BeginStoryboardStoryboard 則無法在開始之後以互動方式控制 。 如需詳細資訊 ,請參閱如何:使用事件觸發程式在腳本啟動時控制分鏡腳本

建構函式

StopStoryboard()

初始化 StopStoryboard 類別的新執行個體。

屬性

BeginStoryboardName

取得或設定 BeginStoryboardName,開始您想要以互動方式控制的 Storyboard

(繼承來源 ControllableStoryboardAction)
DependencyObjectType

取得包裝 DependencyObjectType 這個實例 CLR 型別的 。

(繼承來源 DependencyObject)
Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
IsSealed

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。

(繼承來源 DependencyObject)

方法

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObject

(繼承來源 DispatcherObject)
ClearValue(DependencyProperty)

清除屬性的區域數值。 要清除的屬性是由 DependencyProperty 識別項所指定。

(繼承來源 DependencyObject)
ClearValue(DependencyPropertyKey)

清除唯讀屬性的區域數值。 要清除的屬性是由 DependencyPropertyKey 所指定。

(繼承來源 DependencyObject)
CoerceValue(DependencyProperty)

強制轉型所指定相依性屬性的值。 完成方式是叫用存在於呼叫 DependencyObject 之相依性屬性的屬性中繼資料中所指定的任何 CoerceValueCallback 函式。

(繼承來源 DependencyObject)
Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。

(繼承來源 DependencyObject)
GetHashCode()

取得這個 DependencyObject 的雜湊碼。

(繼承來源 DependencyObject)
GetLocalValueEnumerator()

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。

(繼承來源 DependencyObject)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetValue(DependencyProperty)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。

(繼承來源 DependencyObject)
InvalidateProperty(DependencyProperty)

重新評估指定相依性屬性的有效值。

(繼承來源 DependencyObject)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnPropertyChanged(DependencyPropertyChangedEventArgs)

每當這個 DependencyObject 上任何相依性屬性的有效值已更新時叫用。 已變更的特定相依性屬性會在事件資料中報告。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

傳回相依性屬性的區域值 (如果存在)。

(繼承來源 DependencyObject)
SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。

(繼承來源 DependencyObject)
SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。

(繼承來源 DependencyObject)
ShouldSerializeProperty(DependencyProperty)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。

(繼承來源 DependencyObject)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。

(繼承來源 DispatcherObject)

適用於

另請參閱