RectAnimationUsingKeyFrames.GetCurrentValueCore 方法

定義

計算值,代表正在顯示動畫之屬性的目前值,由這個 RectAnimationUsingKeyFrames 執行個體所決定。

protected:
 override System::Windows::Rect GetCurrentValueCore(System::Windows::Rect defaultOriginValue, System::Windows::Rect defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
protected override sealed System.Windows.Rect GetCurrentValueCore (System.Windows.Rect defaultOriginValue, System.Windows.Rect defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
override this.GetCurrentValueCore : System.Windows.Rect * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock -> System.Windows.Rect
Protected Overrides NotOverridable Function GetCurrentValueCore (defaultOriginValue As Rect, defaultDestinationValue As Rect, animationClock As AnimationClock) As Rect

參數

defaultOriginValue
Rect

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

defaultDestinationValue
Rect

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

animationClock
AnimationClock

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

傳回

屬性的計算值,由目前的執行個體所決定。

備註

如果 defaultOriginValue 是組合鏈結中的第一個值,則此值將會是快照集值,) 或基底屬性值可用時 (,否則這個值將會是鏈 AnimationClock 結中先前動畫傳回的值,且未停止。

defaultDestinationValue如果動畫位於屬性上的第一個動畫組合層,則 為基底值;否則,此值會是屬性上一個動畫組合層的輸出值。

適用於

另請參閱