Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UIElement.GetAnimationBaseValue Method

Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.

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

'Declaration
Public Function GetAnimationBaseValue ( _
	dp As DependencyProperty _
) As Object

Parameters

dp
Type: System.Windows.DependencyProperty

The dependency property to check.

Return Value

Type: System.Object
The property value as if no animations are attached to the specified dependency property.

Implements

IAnimatable.GetAnimationBaseValue(DependencyProperty)

If no animations are attached to the property, then the GetAnimationBaseValue return value is always identical to the GetValue return value. If there are animations attached, then all possible animation derived values including the start and stop values are ignored, and the property value is determined based on all other possible inputs. For more information, see Dependency Property Value Precedence.

The following example implements a handler that reports the base value of an animated Width property on a Button, as well as the base value of a transform.

		' Display the base value for Button.Width and RotateTransform.Angle.
		Private Sub animatedButton_Clicked(ByVal sender As Object, ByVal e As RoutedEventArgs)
			Dim animatedButton As Button = CType(sender, Button)
            MessageBox.Show("Button width base value: " & animatedButton.GetAnimationBaseValue(Button.WidthProperty).ToString & vbLf & "RotateTransform base value: " & animatedRotateTransform.GetAnimationBaseValue(RotateTransform.AngleProperty).ToString)
        End Sub

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft