Animation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an animation.
public ref class Animation : IDisposable, System::Collections::IEnumerable
public class Animation : IDisposable, System.Collections.IEnumerable
type Animation = class
interface IDisposable
interface IEnumerable
Public Class Animation
Implements IDisposable, IEnumerable
- Inheritance
-
Animation
- Derived
- Implements
Constructors
Animation() |
Instantiate a new Animation object. |
Animation(Action<Double>, Double, Double, Easing, Action) |
Instantiate a new Animation object with the given parameters. |
Animation(List<Animation>) |
Instantiate a new Animation object that consists of the given list of child animations. |
Fields
animationManger |
A reference to the IAnimationManager that manages this animation. |
childrenAnimations |
Collection of child animations associated to this animation. |
Properties
AnimationManager |
A reference to the IAnimationManager that manages this animation. |
CurrentTime |
The current timestamp (in seconds) of the animation. |
Duration |
The duration of this animation in seconds. |
Easing |
The Easing function that is applied to this animation. |
Finished |
A callback that is invoked when this animation finishes. |
HasFinished |
Specifies whether this animation has finished. |
IsDisposed |
Gets a value that specifies if this animation has been disposed. |
IsPaused |
Specifies whether this animation is currently paused. |
Name |
The name of this animation. |
Progress |
Progress of this animation in percentage. |
Repeats |
Specifies whether this animation should repeat. |
StartDelay |
The delay (in seconds) taken into account before the animation starts. |
Step |
A callback that is invoked after each tick of this animation. |
Methods
Add(Double, Double, Animation) |
Adds a new child animation to this animation with the specified parameters. |
Commit(IAnimationManager) |
Sets the IAnimationManager for this animation. |
CreateAutoReversing() |
Creates an animation that includes both the original animation and a reversed version of the same animation. |
CreateReverse() |
Creates a reversed version of the current animation, including reversing the child animations. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) | |
GetEnumerator() |
Provides an IEnumerator of the child animations. |
OnTick(Double) |
Executes the logic to update all animations within this animation. |
Pause() |
Pauses the animation. |
RemoveFromParent() |
Removes this animation from it's parent. If there is no parent, nothing will happen. |
Reset() |
Resets the animation (and all child animations) to its initial state. |
Resume() |
Resumes the animation. |
Tick(Double) |
Method to trigger an update for this animation. |
Update(Double) |
Updates this animation by updating Progress and invoking Step. |