Point3DAnimationBase.GetCurrentValueCore 方法

定義

計算值,代表正在顯示動畫之屬性的目前值,如同由 Point3DAnimation 決定。

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

參數

defaultOriginValue
Point3D

在動畫沒有自己的起始值之情況下,要提供給動畫的初始值。

defaultDestinationValue
Point3D

在動畫沒有自己的起始值之情況下,要提供給動畫的目的值。

animationClock
AnimationClock

AnimationClock,可以產生 CurrentTimeCurrentProgress 值,此動畫會用來產生其輸出值。

傳回

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

備註

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

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

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

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

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

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

  • 如果沒有先前的組成圖層, defaultDestinationValue 則為您要產生動畫效果之屬性的基底值。

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

適用於