ThicknessAnimationUsingKeyFrames.GetCurrentValueCore(Thickness, Thickness, AnimationClock) ThicknessAnimationUsingKeyFrames.GetCurrentValueCore(Thickness, Thickness, AnimationClock) ThicknessAnimationUsingKeyFrames.GetCurrentValueCore(Thickness, Thickness, AnimationClock) Method

定義

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

protected:
 override System::Windows::Thickness GetCurrentValueCore(System::Windows::Thickness defaultOriginValue, System::Windows::Thickness defaultDestinationValue, System::Windows::Media::Animation::AnimationClock ^ animationClock);
protected override sealed System.Windows.Thickness GetCurrentValueCore (System.Windows.Thickness defaultOriginValue, System.Windows.Thickness defaultDestinationValue, System.Windows.Media.Animation.AnimationClock animationClock);
override this.GetCurrentValueCore : System.Windows.Thickness * System.Windows.Thickness * System.Windows.Media.Animation.AnimationClock -> System.Windows.Thickness

參數

defaultOriginValue
Thickness Thickness Thickness

建議的原始值,如果沒有明確設定動畫本身的起始值,便會使用這個值。The suggested origin value, used if the animation does not have its own explicitly set start value.

defaultDestinationValue
Thickness Thickness Thickness

建議的目的值,如果沒有明確設定動畫本身的結束值,便會使用這個值。The suggested destination value, used if the animation does not have its own explicitly set end value.

animationClock
AnimationClock AnimationClock AnimationClock

AnimationClock,產生主機動畫所使用的 CurrentTimeCurrentProgressAn AnimationClock that generates the CurrentTime or CurrentProgress used by the host animation.

傳回

屬性的計算值,由目前的執行個體所決定。The calculated value of the property, as determined by the current instance.

備註

如果是組合鏈中的第一個, 此值會是快照集值 (如果有的話) 或基底屬性值, 否則這個值將會是鏈AnimationClock中前一個動畫所傳回的值, 而不是defaultOriginValuec4 > StoppedIf the defaultOriginValue is the first in the composition chain, this value will be the snapshot value (if one is available) or the base property value; otherwise this value will be the value returned by the previous animation in the chain with an AnimationClock that is not Stopped.

如果動畫是在屬性上的動畫第一個組合圖層中, 則為基底值,否則值就是屬性的先前動畫的組合圖層中的輸出值。defaultDestinationValueThe defaultDestinationValue is the base value if the animation is in the first composition layer of animations on a property; otherwise the value is the output value from the previous composition layer of animations for the property.

適用於

另請參閱