Gradually replaces the specified animation with the new animation. The new animation fades in over the specified duration. After this duration the previous animation is stopped and removed from the animation system.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.1.0.0 (1.1.0.9503)

Syntax

C#
public static AnimationTransition Replace(
	AnimationInstance previousAnimation,
	TimeSpan fadeInDuration
)
Visual Basic
Public Shared Function Replace ( _
	previousAnimation As AnimationInstance, _
	fadeInDuration As TimeSpan _
) As AnimationTransition
Visual C++
public:
static AnimationTransition^ Replace(
	AnimationInstance^ previousAnimation, 
	TimeSpan fadeInDuration
)

Parameters

previousAnimation
Type: DigitalRune.Animation..::..AnimationInstance
The animation that should be replaced.
fadeInDuration
Type: System..::..TimeSpan
The duration over which the new animation fades in.

Return Value

The AnimationTransition.

See Also