VectorAnimationUsingKeyFrames 類別

定義

沿著一組 KeyFrames 繪製 Vector 屬性的值。Animates the value of a Vector property along a set of KeyFrames.

public ref class VectorAnimationUsingKeyFrames : System::Windows::Media::Animation::VectorAnimationBase, System::Windows::Markup::IAddChild, System::Windows::Media::Animation::IKeyFrameAnimation
[System.Windows.Markup.ContentProperty("KeyFrames")]
public class VectorAnimationUsingKeyFrames : System.Windows.Media.Animation.VectorAnimationBase, System.Windows.Markup.IAddChild, System.Windows.Media.Animation.IKeyFrameAnimation
type VectorAnimationUsingKeyFrames = class
    inherit VectorAnimationBase
    interface IKeyFrameAnimation
    interface IAddChild
Public Class VectorAnimationUsingKeyFrames
Inherits VectorAnimationBase
Implements IAddChild, IKeyFrameAnimation
繼承
屬性
實作

備註

主要畫面格動畫的目標值是由其KeyFrames屬性定義, 其中包含物件的VectorKeyFrame集合。A key frame animation's target values are defined by its KeyFrames property, which contains a collection of VectorKeyFrame objects. VectorKeyFrame個都會定義具有自己的目標ValueKeyTime的動畫區段。Each VectorKeyFrame defines a segment of the animation with its own target Value and KeyTime. 當動畫執行時, 它會在指定的索引鍵時間, 從一個索引鍵值到下一個值。When the animation runs, it progresses from one key value to the next at the specified key times.

VectorKeyFrame類別有三種類型, 每個支援的插補方法各LinearVectorKeyFrameDiscreteVectorKeyFrame一個: SplineVectorKeyFrame、和。There are three types of VectorKeyFrame classes, one for each supported interpolation method: LinearVectorKeyFrame, DiscreteVectorKeyFrame, and SplineVectorKeyFrame.

不同于VectorAnimation VectorAnimationUsingKeyFrames , 可以有兩個以上的目標值。Unlike a VectorAnimation, a VectorAnimationUsingKeyFrames can have more than two of target values. 您也可以控制個別VectorKeyFrame區段的插補方法。You can also control the interpolation method of individual VectorKeyFrame segments.

建構函式

VectorAnimationUsingKeyFrames()

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

屬性

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.

(繼承來源 Timeline)
AutoReverse

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

(繼承來源 Timeline)
BeginTime

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

(繼承來源 Timeline)
CanFreeze

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

(繼承來源 Freezable)
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.

(繼承來源 Timeline)
DependencyObjectType

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

(繼承來源 DependencyObject)
Dispatcher

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

(繼承來源 DispatcherObject)
Duration

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

(繼承來源 Timeline)
FillBehavior

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

(繼承來源 Timeline)
HasAnimatedProperties

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

(繼承來源 Animatable)
IsAdditive

取得值,指定動畫是否將其輸出值加到所要繪製之屬性的基底值。Gets a value that specifies whether the animation's output value is added to the base value of the property being animated.

IsCumulative

取得或設定值,這個值會指定是否在動畫重複時累加動畫值。Gets or sets a value that specifies whether the animation's value accumulates when it repeats.

IsDestinationDefault

取得值,這個值表示此動畫是否使用 GetCurrentValue(Object, Object, AnimationClock) 方法的 defaultDestinationValue 參數作為其目的地值。Gets a value that indicates whether this animation uses the defaultDestinationValue parameter of the GetCurrentValue(Object, Object, AnimationClock) method as its destination value.

(繼承來源 AnimationTimeline)
IsFrozen

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

(繼承來源 Freezable)
IsSealed

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

(繼承來源 DependencyObject)
KeyFrames

取得或設定定義動畫的 VectorKeyFrame 物件集合。Gets or sets the collection of VectorKeyFrame objects that define the animation.

Name

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

(繼承來源 Timeline)
RepeatBehavior

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

(繼承來源 Timeline)
SpeedRatio

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

(繼承來源 Timeline)
TargetPropertyType

取得這個動畫所產生值的類型。Gets the type of value this animation generates.

(繼承來源 VectorAnimationBase)

方法

AddChild(Object)

將子 VectorKeyFrame 加入這個 VectorAnimationUsingKeyFramesAdds a child VectorKeyFrame to this VectorAnimationUsingKeyFrames.

AddText(String)

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

AllocateClock()

建立這個 ClockAnimationTimelineCreates a Clock for this AnimationTimeline.

(繼承來源 AnimationTimeline)
ApplyAnimationClock(DependencyProperty, AnimationClock)

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

(繼承來源 Animatable)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

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

(繼承來源 Animatable)
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.

(繼承來源 Animatable)
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.

(繼承來源 Animatable)
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)
Clone()

建立這個 VectorAnimationUsingKeyFrames的可修改複本,製作這個物件值的深層複本。Creates a modifiable clone of this VectorAnimationUsingKeyFrames, 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)

使這個執行個體成為指定之 VectorAnimationUsingKeyFrames 的深層複本。Makes this instance a deep copy of the specified VectorAnimationUsingKeyFrames. 當複製相依性屬性時,這個方法會複製資源參考和資料繫結 (但可能無法再解析),但不會複製動畫或它們目前的值。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.

CloneCurrentValue()

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

CloneCurrentValueCore(Freezable)

使用目前的屬性值,讓這個執行個體成為指定之 VectorAnimationUsingKeyFrames 的可修改深層複本。Makes this instance a modifiable deep copy of the specified VectorAnimationUsingKeyFrames using current property values. 不會複製資源參考、資料繫結和動畫,但是會複製其目前值。Resource references, data bindings, and animations are not copied, but their current values are.

CoerceValue(DependencyProperty)

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

(繼承來源 DependencyObject)
CreateClock()

從這個 AnimationTimeline 建立新的 AnimationClockCreates a new AnimationClock from this AnimationTimeline.

(繼承來源 AnimationTimeline)
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.

(繼承來源 Timeline)
CreateInstance()

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

(繼承來源 Freezable)
CreateInstanceCore()

建立 VectorAnimationUsingKeyFrames 的新執行個體。Creates a new instance of VectorAnimationUsingKeyFrames.

Equals(Object)

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

(繼承來源 DependencyObject)
Freeze()

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

(繼承來源 Freezable)
FreezeCore(Boolean)

VectorAnimationUsingKeyFrames 物件的這個執行個體無法修改,或決定是否可以設定為不可修改。Makes this instance of VectorAnimationUsingKeyFrames object unmodifiable or determines whether it can be made unmodifiable.

GetAnimationBaseValue(DependencyProperty)

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

(繼承來源 Animatable)
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.

(繼承來源 Freezable)
GetAsFrozenCore(Freezable)

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

GetCurrentValue(Object, Object, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

(繼承來源 VectorAnimationBase)
GetCurrentValue(Vector, Vector, AnimationClock)

取得動畫的目前值。Gets the current value of the animation.

(繼承來源 VectorAnimationBase)
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.

(繼承來源 Freezable)
GetCurrentValueAsFrozenCore(Freezable)

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

GetCurrentValueCore(Vector, Vector, AnimationClock)

計算值,代表正在顯示動畫之屬性的目前值,由這個 VectorAnimationUsingKeyFrames 執行個體所決定。Calculates a value that represents the current value of the property being animated, as determined by this instance of VectorAnimationUsingKeyFrames.

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)
GetNaturalDuration(Clock)

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

(繼承來源 Timeline)
GetNaturalDurationCore(Clock)

Duration 屬性設定為 Automatic 時,提供自訂的自然 DurationProvide a custom natural Duration when the Duration property is set to Automatic.

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 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnChanged()

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

OnFreezablePropertyChanged(DependencyObject, DependencyObject)

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

(繼承來源 Freezable)
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.

(繼承來源 Freezable)
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.

(繼承來源 Freezable)
ReadLocalValue(DependencyProperty)

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

(繼承來源 DependencyObject)
ReadPreamble()

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

(繼承來源 Freezable)
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)
ShouldSerializeKeyFrames()

如果 KeyFrames 之此執行個體的 VectorAnimationUsingKeyFrames 屬性值應該序列化,則傳回 true。Returns true if the value of the KeyFrames property of this instance of VectorAnimationUsingKeyFrames should be value-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)
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.

(繼承來源 Freezable)
WritePreamble()

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

(繼承來源 Freezable)

事件

Changed

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

(繼承來源 Freezable)
Completed

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

(繼承來源 Timeline)
CurrentGlobalSpeedInvalidated

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

(繼承來源 Timeline)
CurrentStateInvalidated

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

(繼承來源 Timeline)
CurrentTimeInvalidated

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

(繼承來源 Timeline)
RemoveRequested

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

(繼承來源 Timeline)

明確介面實作

IAddChild.AddChild(Object)

加入子物件。Adds a child object.

IAddChild.AddText(String)

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

IKeyFrameAnimation.KeyFrames

取得或設定與這個動畫序列相關的已排序集合 P:System.Windows.Media.Animation.IKeyFrameAnimation.KeyFrames。Gets or sets an ordered collection P:System.Windows.Media.Animation.IKeyFrameAnimation.KeyFrames associated with this animation sequence.

適用於

另請參閱