SetStoryboardSpeedRatio 類別

定義

變更 Storyboard 速度的觸發程序動作。

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

備註

SetStoryboardSpeedRatio搭配 或 Trigger 使用動作 EventTrigger ,以互動方式控制分鏡腳本的速度比例。

使用 的 SpeedRatio 屬性 SetStoryboardSpeedRatio ,將新的 Storyboard 動畫速度指定為舊動畫速度的比例。 例如,如果您將 設定 SpeedRatio 為 2,則會將動畫的速度 Storyboard 加倍,而如果您設定值為 0.5,則會將速度減少 50%。

這個物件會在 Storyboard 開始之後 Storyboard 隨時影響 。 例如,如果您暫停 Storyboard 並使用 SetStoryboardSpeedRatio ,當您繼續 Storyboard 時,它會使用新的速度比率。

PauseStoryboard 不會直接控制 Storyboard 。 相反地, PauseStoryboard 必須參考 NameBeginStoryboard ,其會控制 Storyboard

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

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

建構函式

SetStoryboardSpeedRatio()

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

屬性

BeginStoryboardName

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

(繼承來源 ControllableStoryboardAction)
DependencyObjectType

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

(繼承來源 DependencyObject)
Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObject

(繼承來源 DispatcherObject)
IsSealed

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

(繼承來源 DependencyObject)
SpeedRatio

取得或設定新的 Storyboard 動畫速度,這個動畫速度是以舊動畫速度的比例表示。

方法

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)

適用於

另請參閱