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.

VectorAnimationBase.GetCurrentValue Method (Vector, Vector, AnimationClock)

Gets the current value of the animation.

Namespace: System.Windows.Media.Animation
Assembly: PresentationCore (in presentationcore.dll)

public Vector GetCurrentValue (
	Vector defaultOriginValue,
	Vector defaultDestinationValue,
	AnimationClock animationClock
)
public Vector GetCurrentValue (
	Vector defaultOriginValue, 
	Vector defaultDestinationValue, 
	AnimationClock animationClock
)
public function GetCurrentValue (
	defaultOriginValue : Vector, 
	defaultDestinationValue : Vector, 
	animationClock : AnimationClock
) : Vector
You cannot use methods in XAML.

Parameters

defaultOriginValue

The origin value provided to the animation if the animation does not have its own start value.

defaultDestinationValue

The destination value provided to the animation if the animation does not have its own destination value.

animationClock

The AnimationClock which can generate the CurrentTime or CurrentProgress value to be used by the animation to generate its output value.

Return Value

The current value of this animation.

The value of the defaultOriginValue parameter depends on the animation’s position in the composition chain:

  • If the animation is in the first position in a composition chain and it replaces another animation, defaultOriginValue is the output of that animation at the time it was replaced.

  • If the animation is in the first position in a composition chain and no animation exists to replace, defaultOriginValue is the base value of the animated property.

  • If this animation is not in the first position of a composition chain, then defaultOriginValue is the value that is returned by the previous animation in the composition chain that has an AnimationClock that is not Stopped.

The value of the defaultDestinationValue parameter depends on whether there is a previous property Trigger composition layer.

  • If there is a previous property Trigger composition layer, defaultDestinationValue is the output from that layer.

  • If there is no previous composition layer, defaultDestinationValue is the base value of the property that you are animating.

For more information about animation composition, see the Animation and Timing System Overview. For more information about creating custom animation types, see the Custom Animations Overview.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft