DependencyObject.GetAnimationBaseValue Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)


Public Function GetAnimationBaseValue ( _
    dp As DependencyProperty _
) As Object
public Object GetAnimationBaseValue(
    DependencyProperty dp


Return Value

Type: System.Object
The returned base value.


Exception Condition

dp is nulla null reference (Nothing in Visual Basic).


An animated value acts at highest precedence in the dependency property system, and will return values that can mask other value determinants while the animation is running. You can call GetAnimationBaseValue in order to return the underlying value that might apply as soon as the animation is stopped. Note however that it is possible to specify an animation with a HoldEnd behavior, which means that even a stopped animation will continue to hold the animation-based value after the animation's timeline is visually or apparently stopped.

For more information on animation concepts, see Animation Overview.

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.