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 由主机动画使用。

返回

此动画的当前值。

注解

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

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

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

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

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

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

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

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

适用于

另请参阅