Click or drag to resize
DigitalRuneAnimationControllerStart Method (AnimationTransition)
Starts the animation using the specified transition.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public void Start(
	AnimationTransition transition
)

Parameters

transition
Type: DigitalRune.Animation.TransitionsAnimationTransition
The transition that determines how the new animation is applied. The class AnimationTransitions provides a set of predefined animation transitions.
Exceptions
ExceptionCondition
AnimationException Cannot start animation. The animation instance associated with the current animation controller is already running or has already been recycled and the animation controller is no longer valid.
Remarks

The animation will be started immediately using SnapshotAndReplace. Call Start(AnimationTransition) if another type of transition (for example, a fade-in) should be used.

Important: When animations are started or stopped the animations do not take effect immediately. That means the new animation values are not immediately applied to the properties that are being animated. The animations are evaluated when the animation system is updated (see Update(TimeSpan)) and new animation values are written when ApplyAnimations is called.

The method UpdateAndApply can be called to immediately evaluate and apply the animation. But in most cases it is not necessary to call this method explicitly.

See Also