SeekStoryboard 類別

定義

Storyboard 的作用時段內,提供指定時段之搜尋 (略過) 功能的觸發程序動作 。A trigger action that provides functionality for seeking (skipping) to a specified time within the active period of a Storyboard.

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

備註

SeekStoryboard使用具有EventTrigger 或的Trigger動作來搜尋。 StoryboardUse a SeekStoryboard action with an EventTrigger or a Trigger to seek a Storyboard.

請注意, 搜尋作業並不會將分SpeedRatioSlipBehavior腳本的或設定納入考慮: 分SpeedRatio鏡腳本的處理方式就如同它的SlipBehavior為1而不是。Note that seek operations do not take the storyboard's SpeedRatio or SlipBehavior settings into account: the storyboard is treated as though it had a SpeedRatio of 1 and no SlipBehavior.

搜尋會CurrentGlobalSpeedInvalidated CurrentStateInvalidated觸發其和事件。 StoryboardSeeking a Storyboard triggers its CurrentGlobalSpeedInvalidated and CurrentStateInvalidated events.

暫停、繼續、停止或以互動方式控制分鏡腳本Pause, Resume, Stop, or Otherwise Control a Storyboard Interactively

若要Storyboard能夠以互動方式暫停、繼續或控制, 請設定其BeginStoryboardName屬性, 並使用ControllableStoryboardAction物件 (例如PauseStoryboardResumeStoryboardStopStoryboard) 來控制它參考它Name的。To be able to pause, resume, or otherwise control a Storyboard interactively, set the Name property of its BeginStoryboard and use a ControllableStoryboardAction object (such as PauseStoryboard, ResumeStoryboard, or StopStoryboard) to control it by referencing its Name. 如果未指定BeginStoryboard Storyboard的, 則在開始之後無法以互動方式控制。 NameIf the Name of BeginStoryboard is unspecified, the Storyboard cannot be interactively controlled after it is begun. 請參閱How to:在啟動時, 使用事件觸發程式來控制分鏡腳本, 以取得詳細資訊。See How to: Use Event Triggers to Control a Storyboard After It Starts for more information.

建構函式

SeekStoryboard()

初始化 SeekStoryboard 類別的新執行個體。Initializes a new instance of the SeekStoryboard class.

屬性

BeginStoryboardName

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

(繼承來源 ControllableStoryboardAction)
DependencyObjectType

取得包裝此執行個體之 DependencyObjectType 型別的 CLRCLRGets the DependencyObjectType that wraps the CLRCLR 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)
Offset

取得或設定腳本應該從搜尋原點 Origin 往前或往後移動的數量。Gets or sets the amount by which the storyboard should move forward or backward from the seek origin Origin. 執行個體時提供 SQL Server 登入。.

Origin

取得或設定套用這個搜尋作業之 Offset 的位置。Gets or sets the position from which this seek operation's Offset is applied.

方法

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. 完成方式是叫用存在於呼叫 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)
Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines 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)
ShouldSerializeOffset()

傳回值,這個值表示是否應該序列化這個 OffsetSeekStoryboard 屬性。Returns a value that indicates whether the Offset property of this SeekStoryboard should be serialized.

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)

適用於

另請參閱