Takes a snapshot of the current animation and then starts the new animation. The new
animation is initialized with the snapshot and takes effect immediately. The previous
animations are stopped and removed from the animation system.
Namespace: DigitalRune.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.1.0.0 (1.1.0.9503)
Syntax
| C# |
|---|
public static AnimationTransition SnapshotAndReplace() |
| Visual Basic |
|---|
Public Shared Function SnapshotAndReplace As AnimationTransition |
| Visual C++ |
|---|
public: static AnimationTransition^ SnapshotAndReplace() |
Return Value
The AnimationTransition.
Remarks
Usually, the property's base value is passed to the first animation in composition chain.
When using SnapshotAndReplace()()()() a snapshot of the current animation value is
created. The first animation in the composition chain will receive the snapshot instead of
the base value as its input. The snapshot will be active until a new snapshot is created (by
starting a new animation using SnapshotAndReplace()()()()), or until all animations on
the property are stopped.