| AnimationTransitionsReplace Method (AnimationInstance, TimeSpan) |
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.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static AnimationTransition Replace(
AnimationInstance previousAnimation,
TimeSpan fadeInDuration
)
Public Shared Function Replace (
previousAnimation As AnimationInstance,
fadeInDuration As TimeSpan
) As AnimationTransition
public:
static AnimationTransition^ Replace(
AnimationInstance^ previousAnimation,
TimeSpan fadeInDuration
)
static member Replace :
previousAnimation : AnimationInstance *
fadeInDuration : TimeSpan -> AnimationTransition
Parameters
- previousAnimation
- Type: DigitalRune.AnimationAnimationInstance
The animation that should be replaced. - fadeInDuration
- Type: SystemTimeSpan
The duration over which the new animation fades in.
Return Value
Type:
AnimationTransitionThe
AnimationTransition.
See Also