IAnimatable.GetAnimationBaseValue(DependencyProperty) Method

Definition

Retrieves the base value of the specified DependencyProperty object.

C#
public object GetAnimationBaseValue(System.Windows.DependencyProperty dp);

Parameters

dp
DependencyProperty

The object for which the base value is being requested.

Returns

The object representing the base value of Dp.

Remarks

Use this method instead of GetValue when you want to retrieve the non-animated value of an animated property. This method takes advantage of the fact that Windows Presentation Foundation (WPF) animations do not remove the target property's original value. For more information, see Dependency Property Value Precedence.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also