PointAnimationBase.GetCurrentValueCore(Point, Point, AnimationClock) 方法

定义

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

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

参数

defaultOriginValue
Point

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

defaultDestinationValue
Point

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

animationClock
AnimationClock

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

返回

Point

此动画的当前值。

注解

参数的值 defaultOriginValue 取决于动画在合成链中的位置:

  • 如果动画位于合成链中的第一个位置,并且它替换了另一个动画, defaultOriginValue 则当动画被替换时,该动画的输出。

  • 如果动画位于合成链的第一个位置,并且不存在要替换的动画, defaultOriginValue 则动画属性的基值。

  • 如果此动画不在合成链的第一位置, defaultOriginValue 则构成链 AnimationClock 中上一个动画返回的值不是 Stopped

参数的值 defaultDestinationValue 取决于是否存在以前的属性 Trigger 组合层。

  • 如果存在以前的属性 Trigger 组合层, defaultDestinationValue 则表示该层的输出。

  • 如果没有以前的合成层, defaultDestinationValue 则表示要进行动画处理的属性的基值。

有关动画合成的详细信息,请参阅 动画和计时系统概述。 有关创建自定义动画类型的详细信息,请参阅 自定义动画概述

适用于

另请参阅