IAnimatable.GetAnimationBaseValue(DependencyProperty) 方法

定义

检索指定 DependencyProperty 对象的基值。Retrieves the base value of the specified DependencyProperty object.

public:
 System::Object ^ GetAnimationBaseValue(System::Windows::DependencyProperty ^ dp);
public object GetAnimationBaseValue (System.Windows.DependencyProperty dp);
abstract member GetAnimationBaseValue : System.Windows.DependencyProperty -> obj
Public Function GetAnimationBaseValue (dp As DependencyProperty) As Object

参数

dp
DependencyProperty

要请求其基值的对象。The object for which the base value is being requested.

返回

一个表示 Dp 的基值的对象。The object representing the base value of Dp.

注解

GetValue如果要检索动画属性的非动画值, 请使用此方法, 而不是。Use this method instead of GetValue when you want to retrieve the non-animated value of an animated property. 此方法利用了Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF)动画不会删除目标属性的原始值这一事实。This method takes advantage of the fact that Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) animations do not remove the target property's original value. 有关详细信息,请参阅依赖属性值优先级For more information, see Dependency Property Value Precedence.

适用于

另请参阅