Int16AnimationUsingKeyFrames.GetCurrentValueCore 方法

定义

计算一个值,该值表示正进行动画处理的属性的当前值,并由 Int16AnimationUsingKeyFrames 的实例确定。

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

参数

defaultOriginValue
Int16

建议使用的原始值。如果动画没有自己显式设置的起始值,则使用该值。

defaultDestinationValue
Int16

建议使用的目标值。如果动画没有自己显式设置的结束值,则使用该值。

animationClock
AnimationClock

一个 AnimationClock,用来生成主机动画所使用的 CurrentTimeCurrentProgress

返回

Int16

计算得出的属性值,该值由当前实例确定。

注解

defaultOriginValue如果这是合成链中的第一个值,则此值将是快照值 (,如果) 或基属性值可用,则此值将是链中上一AnimationClockStopped个动画返回的值,但不是。

defaultDestinationValue如果动画位于属性的第一个动画组合层中,则为基值;否则该值是属性上一个动画合成层的输出值。

适用于

另请参阅