Storyboard Storyboard Storyboard Storyboard Class

定義

容器時間表,提供目標設為其子動畫資訊的物件和屬性。A container timeline that provides object and property targeting information for its child animations.

public ref class Storyboard : System::Windows::Media::Animation::ParallelTimeline
public class Storyboard : System.Windows.Media.Animation.ParallelTimeline
type Storyboard = class
    inherit ParallelTimeline
Public Class Storyboard
Inherits ParallelTimeline
繼承

備註

以互動方式控制分鏡腳本Interactively Controlling Storyboards

可控制的腳本可以暫停、繼續、搜尋、停止和移除。A controllable storyboard can pause, resume, seek, stop, and be removed. 若要讓分鏡腳本可在標記中進行Name控制, 您BeginStoryboard可以指定建立它之物件的屬性; 如需範例, 請參閱如何:在腳本啟動之後, 使用事件觸發程式來控制分鏡腳本。To make a storyboard controllable in markup, you specify the Name property of the BeginStoryboard object that creates it; for an example, see How to: Use Event Triggers to Control a Storyboard After It Starts. 若要讓分鏡腳本可在程式碼中進行控制, 您必須使用分Begin鏡腳本的true方法的適當多載, 並指定讓它成為可控制的。To make a storyboard controllable in code, you must use the appropriate overload of the storyboard's Begin method and specify true to make it controllable. 如需範例,請參閱如何:在分鏡腳本啟動後進行控制。For an example, see How to: Control a Storyboard After It Starts.

資料系結和動畫時間軸Data Binding and Animating Timelines

大部分的時間軸屬性可以是資料系結或動畫;不過, 由於計時系統的運作方式, 資料系結或動畫時間軸的行為不像其他資料系結或動畫物件。Most timeline properties can be data bound or animated; however, because of the way the timing system works, data bound or animated timelines do not behave like other data bound or animated objects. 若要瞭解其行為, 它有助於瞭解啟動時程表的意義。To understand their behavior, it helps to understand what it means to activate a timeline.

當時間軸啟動時, 會製作時程表和其子時間軸的複本。When a timeline is activated, copies are made of the timeline and its child timelines. 這些複本會凍結 (設為唯讀), 並Clock從它們建立物件。These copies are frozen (made read-only) and Clock objects are created from them. 這些時鐘會執行以動畫顯示目標屬性的實際工作。These clocks do the actual work of animating the targeted properties. 如果時間軸是資料系結或動畫, 則在建立時鐘時, 會建立其目前值的快照集。If a timeline is data bound or animated, a snapshot of its current values is made when its clock is created. 雖然原始時程表可能會繼續變更, 但其時鐘並不會。Even though the original timeline might continue to change, its clock does not.

若要讓時程表反映資料系結或動畫變更, 必須重新建立其時鐘。For a timeline to reflect data binding or animation changes, its clock must be re-created. 不會自動為您重新建立時鐘。Clocks are not re-created for you automatically. 以下是幾種可套用時間軸變更的方式︰The following are several ways to apply timeline changes:

  • 如果時間軸為或屬於, 您Storyboard可以BeginStoryboard使用或Begin方法來重新套用其分鏡腳本, 使其反映變更。If the timeline is or belongs to a Storyboard, you can make it reflect changes by reapplying its storyboard using a BeginStoryboard or the Begin method. 這也會一併重新啟動動畫。This has the side effect of also restarting the animation. 在程式碼中, 您可以Seek使用方法, 將分鏡腳本推進回到先前的位置。In code, you can use the Seek method to advance the storyboard back to its previous position.

  • 如果您使用BeginAnimation方法將動畫直接套用至屬性, 請再次BeginAnimation呼叫方法, 並將已修改的動畫傳遞給它。If you applied an animation directly to a property using the BeginAnimation method, call the BeginAnimation method again and pass it the animation that has been modified.

  • 如果您直接在時鐘層級進行作業, 請建立並套用一組新的時鐘, 並使用它們來取代先前建立的時鐘集。If you are working directly at the clock level, create and apply a new set of clocks and use them to replace the previous set of created clocks.

如需資料系結動畫的範例, 請參閱主要曲線動畫範例For an example of a data bound animation, see Key Spline Animation Sample .

建構函式

Storyboard() Storyboard() Storyboard() Storyboard()

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

欄位

TargetNameProperty TargetNameProperty TargetNameProperty TargetNameProperty

識別 TargetName 附加屬性。Identifies the TargetName attached property.

TargetProperty TargetProperty TargetProperty TargetProperty

識別 Target 附加屬性。Identifies the Target attached property.

TargetPropertyProperty TargetPropertyProperty TargetPropertyProperty TargetPropertyProperty

識別 TargetProperty 附加屬性。Identifies the TargetProperty attached property.

附加屬性

Target Target Target Target

取得或設定應該顯示動畫的物件。Gets or sets the object that should be animated.

TargetName TargetName TargetName TargetName

取得或設定要繪製動畫之物件的名稱。Gets or sets the name of the object to animate. 此物件必須是 FrameworkElementFrameworkContentElementFreezableThe object must be a FrameworkElement, FrameworkContentElement, or Freezable.

方法

AddChild(Object) AddChild(Object) AddChild(Object) AddChild(Object)

將子 Timeline 加入這個 TimelineGroupAdds a child Timeline to this TimelineGroup.

(Inherited from TimelineGroup)
AddText(String) AddText(String) AddText(String) AddText(String)

將文字字串當做這個 Timeline 的子系加入。Adds a text string as a child of this Timeline.

(Inherited from TimelineGroup)
AllocateClock() AllocateClock() AllocateClock() AllocateClock()

為這個時刻表建立特定型別的時鐘。Creates a type-specific clock for this timeline.

(Inherited from TimelineGroup)
ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock)

AnimationClock 套用至指定的 DependencyPropertyApplies an AnimationClock to the specified DependencyProperty. 如果屬性已有動畫效果,即使用 SnapshotAndReplace 遞移式行為。If the property is already animated, the SnapshotAndReplace handoff behavior is used.

(Inherited from Animatable)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

AnimationClock 套用至指定的 DependencyPropertyApplies an AnimationClock to the specified DependencyProperty. 如果已建立屬性的動畫,則會使用指定的 HandoffBehaviorIf the property is already animated, the specified HandoffBehavior is used.

(Inherited from Animatable)
Begin() Begin() Begin() Begin()

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement) Begin(FrameworkContentElement) Begin(FrameworkContentElement) Begin(FrameworkContentElement)

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement, Boolean) Begin(FrameworkContentElement, Boolean) Begin(FrameworkContentElement, Boolean) Begin(FrameworkContentElement, Boolean)

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkContentElement, HandoffBehavior) Begin(FrameworkContentElement, HandoffBehavior) Begin(FrameworkContentElement, HandoffBehavior) Begin(FrameworkContentElement, HandoffBehavior)

使用指定的 Storyboard,將與這個 HandoffBehavior 相關聯的動畫套用至目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkContentElement, HandoffBehavior, Boolean) Begin(FrameworkContentElement, HandoffBehavior, Boolean) Begin(FrameworkContentElement, HandoffBehavior, Boolean) Begin(FrameworkContentElement, HandoffBehavior, Boolean)

使用指定的 Storyboard,將與這個 HandoffBehavior 相關聯的動畫套用至目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkElement) Begin(FrameworkElement) Begin(FrameworkElement) Begin(FrameworkElement)

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkElement, Boolean) Begin(FrameworkElement, Boolean) Begin(FrameworkElement, Boolean) Begin(FrameworkElement, Boolean)

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

Begin(FrameworkElement, FrameworkTemplate) Begin(FrameworkElement, FrameworkTemplate) Begin(FrameworkElement, FrameworkTemplate) Begin(FrameworkElement, FrameworkTemplate)

將與這個 Storyboard 相關聯的動畫套用至指定範本內的目標並加以初始化。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, Boolean) Begin(FrameworkElement, FrameworkTemplate, Boolean) Begin(FrameworkElement, FrameworkTemplate, Boolean) Begin(FrameworkElement, FrameworkTemplate, Boolean)

將與這個 Storyboard 相關聯的動畫套用至指定範本內的目標並加以初始化。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior)

將與這個 Storyboard 相關聯的動畫套用至指定範本內的目標並加以初始化。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior, Boolean) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior, Boolean) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior, Boolean) Begin(FrameworkElement, FrameworkTemplate, HandoffBehavior, Boolean)

將與這個 Storyboard 相關聯的動畫套用至指定範本內的目標並加以初始化。Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

Begin(FrameworkElement, HandoffBehavior) Begin(FrameworkElement, HandoffBehavior) Begin(FrameworkElement, HandoffBehavior) Begin(FrameworkElement, HandoffBehavior)

使用指定的 Storyboard,將與這個 HandoffBehavior 相關聯的動畫套用至目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

Begin(FrameworkElement, HandoffBehavior, Boolean) Begin(FrameworkElement, HandoffBehavior, Boolean) Begin(FrameworkElement, HandoffBehavior, Boolean) Begin(FrameworkElement, HandoffBehavior, Boolean)

將與這個 Storyboard 相關聯的動畫套用至其目標並加以初始化。Applies the animations associated with this Storyboard to their targets and initiates them.

BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline)

將動畫套用至指定的 DependencyPropertyApplies an animation to the specified DependencyProperty. 呈現下一個畫面格後,就會啟動動畫。The animation is started when the next frame is rendered. 如果指定的屬性已有動畫效果,即使用 SnapshotAndReplace 遞移式行為。If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

(Inherited from Animatable)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

將動畫套用至指定的 DependencyPropertyApplies an animation to the specified DependencyProperty. 呈現下一個畫面格後,就會啟動動畫。The animation is started when the next frame is rendered. 如果已建立指定之屬性的動畫,則會使用指定的 HandoffBehaviorIf the specified property is already animated, the specified HandoffBehavior is used.

(Inherited from Animatable)
CheckAccess() CheckAccess() CheckAccess() CheckAccess()

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

(Inherited from DispatcherObject)
ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

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

(Inherited from DependencyObject)
ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey)

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

(Inherited from DependencyObject)
Clone() Clone() Clone() Clone()

建立這個 Storyboard 的可修改複製品,深層複製這個物件的值。Creates a modifiable clone of this Storyboard, making deep copies of this object's values. 當複製相依性屬性時,這個方法會複製資源參考和資料繫結 (但可能無法再解析),但不會複製動畫或它們目前的值。When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.

CloneCore(Freezable) CloneCore(Freezable) CloneCore(Freezable) CloneCore(Freezable)

使用基底 (非動畫) 屬性值,將執行個體設為指定 Freezable 的複製品 (深層複製)。Makes the instance a clone (deep copy) of the specified Freezable using base (non-animated) property values.

(Inherited from Freezable)
CloneCurrentValue() CloneCurrentValue() CloneCurrentValue() CloneCurrentValue()

建立這個 ParallelTimeline 物件的可修改複製品,製作這個物件目前值的深層複本。Creates a modifiable clone of this ParallelTimeline object, making deep copies of this object's current values. 不會複製資源參考、資料繫結和動畫,但是會複製其目前值。Resource references, data bindings, and animations are not copied, but their current values are.

(Inherited from ParallelTimeline)
CloneCurrentValueCore(Freezable) CloneCurrentValueCore(Freezable) CloneCurrentValueCore(Freezable) CloneCurrentValueCore(Freezable)

使用目前的屬性值,讓執行個體成為指定之 Freezable 的可修改複本 (深層複本)。Makes the instance a modifiable clone (deep copy) of the specified Freezable using current property values.

(Inherited from Freezable)
CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) 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.

(Inherited from DependencyObject)
CreateClock() CreateClock() CreateClock() CreateClock()

使用這個執行個體產生新的 ClockGroup 物件。Instantiates a new ClockGroup object, using this instance.

(Inherited from TimelineGroup)
CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean)

從這個 Clock 建立新的 Timeline 並指定新的 Clock 是否是可控制的。Creates a new Clock from this Timeline and specifies whether the new Clock is controllable. 如果此 Timeline 具有子系,將會使用 Timeline 建立時鐘的樹狀結構作為根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

(Inherited from Timeline)
CreateInstance() CreateInstance() CreateInstance() CreateInstance()

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

(Inherited from Freezable)
CreateInstanceCore() CreateInstanceCore() CreateInstanceCore() CreateInstanceCore()

建立 Storyboard 類別的新執行個體。Creates a new instance of the Storyboard class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from DependencyObject)
Freeze() Freeze() Freeze() Freeze()

將目前的物件設為不可修改,並將其 IsFrozen 屬性設定為 trueMakes the current object unmodifiable and sets its IsFrozen property to true.

(Inherited from Freezable)
FreezeCore(Boolean) FreezeCore(Boolean) FreezeCore(Boolean) FreezeCore(Boolean)

使這個 Timeline 成為不可修改,或決定它是否可以變成不可修改。Makes this Timeline unmodifiable or determines whether it can be made unmodifiable.

(Inherited from Timeline)
GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

傳回指定之 DependencyProperty 的非動畫實值。Returns the non-animated value of the specified DependencyProperty.

(Inherited from Animatable)
GetAsFrozen() GetAsFrozen() GetAsFrozen() GetAsFrozen()

使用基底 (非動畫) 屬性值,建立 Freezable 的凍結複本。Creates a frozen copy of the Freezable, using base (non-animated) property values. 因為複本已凍結,所以會以傳址方式複製任何凍結子物件。Because the copy is frozen, any frozen sub-objects are copied by reference.

(Inherited from Freezable)
GetAsFrozenCore(Freezable) GetAsFrozenCore(Freezable) GetAsFrozenCore(Freezable) GetAsFrozenCore(Freezable)

使這個執行個體成為指定之 Timeline 物件的複製。Makes this instance a clone of the specified Timeline object.

(Inherited from Timeline)
GetCurrentGlobalSpeed() GetCurrentGlobalSpeed() GetCurrentGlobalSpeed() GetCurrentGlobalSpeed()

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentGlobalSpeed(FrameworkContentElement) GetCurrentGlobalSpeed(FrameworkContentElement) GetCurrentGlobalSpeed(FrameworkContentElement) GetCurrentGlobalSpeed(FrameworkContentElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentGlobalSpeed(FrameworkElement) GetCurrentGlobalSpeed(FrameworkElement) GetCurrentGlobalSpeed(FrameworkElement) GetCurrentGlobalSpeed(FrameworkElement)

擷取之前為這個 CurrentGlobalSpeed 建立之 ClockStoryboardRetrieves the CurrentGlobalSpeed of the Clock that was created for this Storyboard.

GetCurrentIteration() GetCurrentIteration() GetCurrentIteration() GetCurrentIteration()

擷取之前為這個 CurrentIteration 建立之 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentIteration(FrameworkContentElement) GetCurrentIteration(FrameworkContentElement) GetCurrentIteration(FrameworkContentElement) GetCurrentIteration(FrameworkContentElement)

擷取之前為這個 CurrentIteration 建立之 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentIteration(FrameworkElement) GetCurrentIteration(FrameworkElement) GetCurrentIteration(FrameworkElement) GetCurrentIteration(FrameworkElement)

擷取之前為這個 CurrentIteration 建立之 ClockStoryboardRetrieves the CurrentIteration of the Clock that was created for this Storyboard.

GetCurrentProgress() GetCurrentProgress() GetCurrentProgress() GetCurrentProgress()

擷取之前為這個 CurrentProgress 建立之 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentProgress(FrameworkContentElement) GetCurrentProgress(FrameworkContentElement) GetCurrentProgress(FrameworkContentElement) GetCurrentProgress(FrameworkContentElement)

擷取之前為這個 CurrentProgress 建立之 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentProgress(FrameworkElement) GetCurrentProgress(FrameworkElement) GetCurrentProgress(FrameworkElement) GetCurrentProgress(FrameworkElement)

擷取之前為這個 CurrentProgress 建立之 ClockStoryboardRetrieves the CurrentProgress of the Clock that was created for this Storyboard.

GetCurrentState() GetCurrentState() GetCurrentState() GetCurrentState()

擷取之前為這個 CurrentState 建立之 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentState(FrameworkContentElement) GetCurrentState(FrameworkContentElement) GetCurrentState(FrameworkContentElement) GetCurrentState(FrameworkContentElement)

擷取之前為這個 CurrentState 建立之 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentState(FrameworkElement) GetCurrentState(FrameworkElement) GetCurrentState(FrameworkElement) GetCurrentState(FrameworkElement)

擷取之前為這個 CurrentState 建立之 ClockStoryboardRetrieves the CurrentState of the Clock that was created for this Storyboard.

GetCurrentTime() GetCurrentTime() GetCurrentTime() GetCurrentTime()

擷取之前為這個 CurrentTime 建立之 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentTime(FrameworkContentElement) GetCurrentTime(FrameworkContentElement) GetCurrentTime(FrameworkContentElement) GetCurrentTime(FrameworkContentElement)

擷取之前為這個 CurrentTime 建立之 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentTime(FrameworkElement) GetCurrentTime(FrameworkElement) GetCurrentTime(FrameworkElement) GetCurrentTime(FrameworkElement)

擷取之前為這個 CurrentTime 建立之 ClockStoryboardRetrieves the CurrentTime of the Clock that was created for this Storyboard.

GetCurrentValueAsFrozen() GetCurrentValueAsFrozen() GetCurrentValueAsFrozen() GetCurrentValueAsFrozen()

使用目前屬性值,建立 Freezable 的凍結複本。Creates a frozen copy of the Freezable using current property values. 因為複本已凍結,所以會以傳址方式複製任何凍結子物件。Because the copy is frozen, any frozen sub-objects are copied by reference.

(Inherited from Freezable)
GetCurrentValueAsFrozenCore(Freezable) GetCurrentValueAsFrozenCore(Freezable) GetCurrentValueAsFrozenCore(Freezable) GetCurrentValueAsFrozenCore(Freezable)

使這個執行個體成為所指定 Timeline 的凍結複製品。Makes this instance a frozen clone of the specified Timeline. 不會複製資源參考、資料繫結和動畫,但是會複製其目前值。Resource references, data bindings, and animations are not copied, but their current values are.

(Inherited from Timeline)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from DependencyObject)
GetIsPaused() GetIsPaused() GetIsPaused() GetIsPaused()

擷取值,這個值指出為這個 Clock 所建立的 Storyboard 是否已暫停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetIsPaused(FrameworkContentElement) GetIsPaused(FrameworkContentElement) GetIsPaused(FrameworkContentElement) GetIsPaused(FrameworkContentElement)

擷取值,這個值指出為這個 Clock 所建立的 Storyboard 是否已暫停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetIsPaused(FrameworkElement) GetIsPaused(FrameworkElement) GetIsPaused(FrameworkElement) GetIsPaused(FrameworkElement)

擷取值,這個值指出為這個 Clock 所建立的 Storyboard 是否已暫停。Retrieves a value that indicates whether the Clock that was created for this Storyboard is paused.

GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator()

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

(Inherited from DependencyObject)
GetNaturalDuration(Clock) GetNaturalDuration(Clock) GetNaturalDuration(Clock) GetNaturalDuration(Clock)

傳回這個 Timeline 的單一反覆項目的長度。Returns the length of a single iteration of this Timeline.

(Inherited from Timeline)
GetNaturalDurationCore(Clock) GetNaturalDurationCore(Clock) GetNaturalDurationCore(Clock) GetNaturalDurationCore(Clock)

從指定的 Clock 傳回自然持續期間 (單一反覆運算的持續期間)。Return the natural duration (duration of a single iteration) from a specified Clock.

(Inherited from ParallelTimeline)
GetTarget(DependencyObject) GetTarget(DependencyObject) GetTarget(DependencyObject) GetTarget(DependencyObject)

擷取所指定 TargetTimeline 值。Retrieves the Target value of the specified Timeline.

GetTargetName(DependencyObject) GetTargetName(DependencyObject) GetTargetName(DependencyObject) GetTargetName(DependencyObject)

擷取所指定 TargetNameTimeline 值。Retrieves the TargetName value of the specified Timeline.

GetTargetProperty(DependencyObject) GetTargetProperty(DependencyObject) GetTargetProperty(DependencyObject) GetTargetProperty(DependencyObject)

擷取所指定 TargetPropertyTimeline 值。Retrieves the TargetProperty value of the specified Timeline.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

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

(Inherited from DependencyObject)
InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty)

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

(Inherited from DependencyObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnChanged() OnChanged() OnChanged() OnChanged()

目前的 Freezable 物件遭到修改時進行呼叫。Called when the current Freezable object is modified.

(Inherited from Freezable)
OnFreezablePropertyChanged(DependencyObject, DependencyObject) OnFreezablePropertyChanged(DependencyObject, DependencyObject) OnFreezablePropertyChanged(DependencyObject, DependencyObject) OnFreezablePropertyChanged(DependencyObject, DependencyObject)

確定已為剛剛設定的 DependencyObjectType 資料成員,建立適當的內容指標。Ensures that appropriate context pointers are established for a DependencyObjectType data member that has just been set.

(Inherited from Freezable)
OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(Inherited from Freezable)
OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs)

覆寫 OnPropertyChanged(DependencyPropertyChangedEventArgs)DependencyObject 實作也可以叫用任何 Changed 處理常式,以回應類型 Freezable 的變更相依性屬性。Overrides the DependencyObject implementation of OnPropertyChanged(DependencyPropertyChangedEventArgs) to also invoke any Changed handlers in response to a changing dependency property of type Freezable.

(Inherited from Freezable)
Pause() Pause() Pause() Pause()

暫停為這個 Clock 所建立的 StoryboardPauses the Clock that was created for this Storyboard.

Pause(FrameworkContentElement) Pause(FrameworkContentElement) Pause(FrameworkContentElement) Pause(FrameworkContentElement)

暫停與這個 Clock 相關聯之指定 FrameworkContentElementStoryboardPauses the Clock of the specified FrameworkContentElement associated with this Storyboard.

Pause(FrameworkElement) Pause(FrameworkElement) Pause(FrameworkElement) Pause(FrameworkElement)

暫停與這個 Clock 相關聯之指定 FrameworkElementStoryboardPauses the Clock of the specified FrameworkElement associated with this Storyboard.

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists.

(Inherited from DependencyObject)
ReadPreamble() ReadPreamble() ReadPreamble() ReadPreamble()

確定 Freezable 是從有效的執行緒進行存取。Ensures that the Freezable is being accessed from a valid thread. 如果 APIAPI 會讀取非相依性屬性的資料成員,則 Freezable 的繼承者必須在該 API 的開頭呼叫這個方法。Inheritors of Freezable must call this method at the beginning of any APIAPI that reads data members that are not dependency properties.

(Inherited from Freezable)
Remove() Remove() Remove() Remove()

移除已針對這個 Clock 所建立的 Storyboard物件。Removes the Clock objects that were created for this Storyboard. 屬於這個 Storyboard 的動畫不再影響曾經繪製的屬性,而不管其 FillBehavior 設定為何。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Remove(FrameworkContentElement) Remove(FrameworkContentElement) Remove(FrameworkContentElement) Remove(FrameworkContentElement)

移除已針對這個 Storyboard 所建立的 Clock 物件。Removes the Clock objects that were created for this Storyboard. 屬於這個 Storyboard 的動畫不再影響曾經繪製的屬性,而不管其 FillBehavior 設定為何。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Remove(FrameworkElement) Remove(FrameworkElement) Remove(FrameworkElement) Remove(FrameworkElement)

移除已針對這個 Storyboard 所建立的 Clock 物件。Removes the Clock objects that were created for this Storyboard. 屬於這個 Storyboard 的動畫不再影響曾經繪製的屬性,而不管其 FillBehavior 設定為何。Animations that belong to this Storyboard no longer affect the properties they once animated, regardless of their FillBehavior setting.

Resume() Resume() Resume() Resume()

繼續為了這個 Clock 所建立的 StoryboardResumes the Clock that was created for this Storyboard.

Resume(FrameworkContentElement) Resume(FrameworkContentElement) Resume(FrameworkContentElement) Resume(FrameworkContentElement)

繼續為了這個 Clock 所建立的 StoryboardResumes the Clock that was created for this Storyboard.

Resume(FrameworkElement) Resume(FrameworkElement) Resume(FrameworkElement) Resume(FrameworkElement)

繼續為了這個 Clock 所建立的 StoryboardResumes the Clock that was created for this Storyboard.

Seek(FrameworkContentElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkContentElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkContentElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkContentElement, TimeSpan, TimeSeekOrigin)

搜尋這個 Storyboard,直到指定位置。Seeks this Storyboard to the specified position. Storyboard 會在到達下個時鐘刻度時執行要求的搜尋。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(FrameworkElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkElement, TimeSpan, TimeSeekOrigin) Seek(FrameworkElement, TimeSpan, TimeSeekOrigin)

搜尋這個 Storyboard,直到指定位置。Seeks this Storyboard to the specified position. Storyboard 會在到達下個時鐘刻度時執行要求的搜尋。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(TimeSpan) Seek(TimeSpan) Seek(TimeSpan) Seek(TimeSpan)

搜尋這個 Storyboard,直到指定位置。Seeks this Storyboard to the specified position. Storyboard 會在到達下個時鐘刻度時執行要求的搜尋。The Storyboard performs the requested seek when the next clock tick occurs.

Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin) Seek(TimeSpan, TimeSeekOrigin)

搜尋這個 Storyboard,直到指定位置。Seeks this Storyboard to the specified position. Storyboard 會在到達下個時鐘刻度時執行要求的搜尋。The Storyboard performs the requested seek when the next clock tick occurs.

SeekAlignedToLastTick(FrameworkContentElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkContentElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkContentElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkContentElement, TimeSpan, TimeSeekOrigin)

立即在新位置搜尋這個 Storyboard (同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(FrameworkElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkElement, TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(FrameworkElement, TimeSpan, TimeSeekOrigin)

立即在新位置搜尋這個 Storyboard (同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(TimeSpan) SeekAlignedToLastTick(TimeSpan) SeekAlignedToLastTick(TimeSpan) SeekAlignedToLastTick(TimeSpan)

立即在新位置搜尋這個 Storyboard (同步)。Seeks this Storyboard to a new position immediately (synchronously).

SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin) SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin)

立即在新位置搜尋這個 Storyboard (同步)。Seeks this Storyboard to a new position immediately (synchronously).

SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object) SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。Sets the value of a dependency property without changing its value source.

(Inherited from DependencyObject)
SetSpeedRatio(Double) SetSpeedRatio(Double) SetSpeedRatio(Double) SetSpeedRatio(Double)

設定之前為這個 Clock 建立之 Storyboard 的互動速率。Sets the interactive speed ratio for the Clock that was created for this Storyboard.

SetSpeedRatio(FrameworkContentElement, Double) SetSpeedRatio(FrameworkContentElement, Double) SetSpeedRatio(FrameworkContentElement, Double) SetSpeedRatio(FrameworkContentElement, Double)

設定為了這個 Storyboard 所建立 Clock 的互動速度比例。Sets the interactive speed ratio of the Clock that was created for this Storyboard.

SetSpeedRatio(FrameworkElement, Double) SetSpeedRatio(FrameworkElement, Double) SetSpeedRatio(FrameworkElement, Double) SetSpeedRatio(FrameworkElement, Double)

設定為了這個 Storyboard 所建立 Clock 的互動速度比例。Sets the interactive speed ratio of the Clock that was created for this Storyboard.

SetTarget(DependencyObject, DependencyObject) SetTarget(DependencyObject, DependencyObject) SetTarget(DependencyObject, DependencyObject) SetTarget(DependencyObject, DependencyObject)

將指定的 Timeline 目標設為相依性物件。Makes the specified Timeline target the dependency object.

SetTargetName(DependencyObject, String) SetTargetName(DependencyObject, String) SetTargetName(DependencyObject, String) SetTargetName(DependencyObject, String)

使指定的 Timeline 以具有指定名稱的相依性物件為目標。Makes the specified Timeline target the dependency object with the specified name.

SetTargetProperty(DependencyObject, PropertyPath) SetTargetProperty(DependencyObject, PropertyPath) SetTargetProperty(DependencyObject, PropertyPath) SetTargetProperty(DependencyObject, PropertyPath)

讓指定的 Timeline 以指定的相依性物件為目標。Makes the specified Timeline target the specified dependency property.

SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object) SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier.

(Inherited from DependencyObject)
SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object) SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(Inherited from DependencyObject)
ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty) ShouldSerializeProperty(DependencyProperty)

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

(Inherited from DependencyObject)
SkipToFill() SkipToFill() SkipToFill() SkipToFill()

將腳本 Clock 的目前時間往前推進到其使用中週期結束。Advances the current time of this storyboard's Clock to the end of its active period.

SkipToFill(FrameworkContentElement) SkipToFill(FrameworkContentElement) SkipToFill(FrameworkContentElement) SkipToFill(FrameworkContentElement)

將腳本 Clock 的目前時間往前推進到其使用中週期結束。Advances the current time of this storyboard's Clock to the end of its active period.

SkipToFill(FrameworkElement) SkipToFill(FrameworkElement) SkipToFill(FrameworkElement) SkipToFill(FrameworkElement)

將腳本 Clock 的目前時間往前推進到其使用中週期結束。Advances the current time of this storyboard's Clock to the end of its active period.

Stop() Stop() Stop() Stop()

停止為了這個 Storyboard 所建立的 ClockStops the Clock that was created for this Storyboard.

Stop(FrameworkContentElement) Stop(FrameworkContentElement) Stop(FrameworkContentElement) Stop(FrameworkContentElement)

停止為了這個 Storyboard 所建立的 ClockStops the Clock that was created for this Storyboard.

Stop(FrameworkElement) Stop(FrameworkElement) Stop(FrameworkElement) Stop(FrameworkElement)

停止為了這個 Storyboard 所建立的 ClockStops the Clock that was created for this Storyboard.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

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

(Inherited from DispatcherObject)
WritePostscript() WritePostscript() WritePostscript() WritePostscript()

引發 FreezableChanged 事件,並叫用其 OnChanged() 方法。Raises the Changed event for the Freezable and invokes its OnChanged() method. 在任何 API 修改未以相依性屬性儲存的類別成員之後,衍生自 Freezable 的類別應該在 API 的結尾呼叫這個方法。Classes that derive from Freezable should call this method at the end of any API that modifies class members that are not stored as dependency properties.

(Inherited from Freezable)
WritePreamble() WritePreamble() WritePreamble() WritePreamble()

確認 Freezable 未凍結,而且是從有效的執行緒內容進行存取。Verifies that the Freezable is not frozen and that it is being accessed from a valid threading context. 在任何 APIAPI 將資料寫入至非相依性屬性的資料成員之前,Freezable 繼承者應該在 API 的開頭呼叫這個方法。Freezable inheritors should call this method at the beginning of any APIAPI that writes to data members that are not dependency properties.

(Inherited from Freezable)

屬性

AccelerationRatio AccelerationRatio AccelerationRatio AccelerationRatio

取得或設定值,這個值指定時刻表的 Duration 將時間從零加速至其最大速率所花費的百分比。Gets or sets a value specifying the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate.

(Inherited from Timeline)
AutoReverse AutoReverse AutoReverse AutoReverse

取得或設定值,這個值表示時間表在完成向前反覆動作後是否進行反向播放。Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.

(Inherited from Timeline)
BeginTime BeginTime BeginTime BeginTime

取得或設定這個 Timeline 應開始的時間。Gets or sets the time at which this Timeline should begin.

(Inherited from Timeline)
CanFreeze CanFreeze CanFreeze CanFreeze

取得值,指出是否可以將物件設為不可修改。Gets a value that indicates whether the object can be made unmodifiable.

(Inherited from Freezable)
Children Children Children Children

取得或設定 TimelineGroup 之直接子 Timeline 物件集合。Gets or sets the collection of direct child Timeline objects of the TimelineGroup.

(Inherited from TimelineGroup)
DecelerationRatio DecelerationRatio DecelerationRatio DecelerationRatio

取得或設定值,這個值指定時刻表的 Duration 將時間推移從其最大速率減速至零所花費的百分比。Gets or sets a value specifying the percentage of the timeline's Duration spent decelerating the passage of time from its maximum rate to zero.

(Inherited from Timeline)
DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType

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

(Inherited from DependencyObject)
Dispatcher Dispatcher Dispatcher Dispatcher

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

(Inherited from DispatcherObject)
Duration Duration Duration Duration

取得或設定這個時間表播放的時間長度 (不計算重複次數)。Gets or sets the length of time for which this timeline plays, not counting repetitions.

(Inherited from Timeline)
FillBehavior FillBehavior FillBehavior FillBehavior

取得或設定值,指定 Timeline 在其作用期結束之後的運作方式。Gets or sets a value that specifies how the Timeline behaves after it reaches the end of its active period.

(Inherited from Timeline)
HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties

取得值,這個值表示是否有一個或多個 AnimationClock 物件與這個物件的任何一個相依性屬性相關聯。Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties.

(Inherited from Animatable)
IsFrozen IsFrozen IsFrozen IsFrozen

取得值,該值表示物件目前是否可修改。Gets a value that indicates whether the object is currently modifiable.

(Inherited from Freezable)
IsSealed IsSealed IsSealed IsSealed

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

(Inherited from DependencyObject)
Name Name Name Name

取得或設定這個 Timeline 的名稱。Gets or sets the name of this Timeline.

(Inherited from Timeline)
RepeatBehavior RepeatBehavior RepeatBehavior RepeatBehavior

取得或設定這個時刻表的重複行為。Gets or sets the repeating behavior of this timeline.

(Inherited from Timeline)
SlipBehavior SlipBehavior SlipBehavior SlipBehavior

取得或設定值,指定這個時間軸在其一或多個 Timeline 子系順延時會有什麼行為。Gets or sets a value that specifies how this timeline will behave when one or more of its Timeline children slips.

(Inherited from ParallelTimeline)
SpeedRatio SpeedRatio SpeedRatio SpeedRatio

取得或設定這個 Timeline 相對於其父代的時間進行比率。Gets or sets the rate, relative to its parent, at which time progresses for this Timeline.

(Inherited from Timeline)

事件

Changed Changed Changed Changed

發生於 Freezable 或所含的物件遭到修改時。Occurs when the Freezable or an object it contains is modified.

(Inherited from Freezable)
Completed Completed Completed Completed

當這個時刻表完全結束播放時會發生:它不會再進入其作用期。Occurs when this timeline has completely finished playing: it will no longer enter its active period.

(Inherited from Timeline)
CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated

發生於時刻表時鐘的時間進行速率變更時。Occurs when the rate at which time progresses for the timeline's clock changes.

(Inherited from Timeline)
CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated

發生於時刻表之 CurrentStateClock 屬性更新時。Occurs when the CurrentState property of the timeline's Clock is updated.

(Inherited from Timeline)
CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated

發生於時刻表之 CurrentTimeClock 屬性更新時。Occurs when the CurrentTime property of the timeline's Clock is updated.

(Inherited from Timeline)
RemoveRequested RemoveRequested RemoveRequested RemoveRequested

為這個時刻表建立時鐘或移除它的其中一個父時刻表時發生。Occurs when the clock created for this timeline or one of its parent timelines is removed.

(Inherited from Timeline)

明確介面實作

IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object)

加入子物件。Adds a child object.

(Inherited from TimelineGroup)
IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String)

將節點的文字內容加入物件中。Adds the text content of a node to the object.

(Inherited from TimelineGroup)

適用於