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.

適用於

另請參閱