VectorAnimationBase.GetCurrentValueCore 方法

定義

計算值,代表正在顯示動畫之屬性的目前值,由主機動畫所決定。

protected:
 abstract System::Windows::Vector GetCurrentValueCore(System::Windows::Vector defaultOriginValue, System::Windows::Vector defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
protected abstract System.Windows.Vector GetCurrentValueCore (System.Windows.Vector defaultOriginValue, System.Windows.Vector defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
abstract member GetCurrentValueCore : System.Windows.Vector * System.Windows.Vector * System.Windows.Media.Animation.AnimationClock -> System.Windows.Vector
Protected MustOverride Function GetCurrentValueCore (defaultOriginValue As Vector, defaultDestinationValue As Vector, animationClock As AnimationClock) As Vector

參數

defaultOriginValue
Vector

建議的原始值,如果沒有明確設定動畫本身的起始值,便會使用這個值。

defaultDestinationValue
Vector

建議的目的值,如果沒有明確設定動畫本身的結束值,便會使用這個值。

animationClock
AnimationClock

AnimationClock,會產生主機動畫所使用的 CurrentTimeCurrentProgress

傳回

屬性的計算值,由目前的動畫所決定。

備註

參數的值 defaultOriginValue 取決於動畫在組合鏈結中的位置:

  • 如果動畫位於組合鏈結的第一個位置,而且會取代另一個動畫, defaultOriginValue 則為取代時該動畫的輸出。

  • 如果動畫位於組合鏈結的第一個位置,而且沒有要取代的動畫, defaultOriginValue 則 為動畫屬性的基底值。

  • 如果這個動畫不在組合鏈結的第一個位置,則 defaultOriginValue 為組合鏈結中先前的動畫所傳回的值, AnimationClock 且該動畫不是 Stopped

參數的值 defaultDestinationValue 取決於是否有先前的屬性 Trigger 組合層。

  • 如果有先前的屬性 Trigger 組合層, defaultDestinationValue 則為該圖層的輸出。

  • 如果沒有先前的組合層, defaultDestinationValue 就是您要建立動畫效果之屬性的基底值。

如需動畫組合的詳細資訊,請參閱 動畫和計時系統概觀。 如需建立自訂動畫類型的詳細資訊,請參閱 自訂動畫概觀

適用於

另請參閱