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.
Encapsulates an animation, a collection of functions that modify properties over a user-perceptible time period.
public ref class Animation : Microsoft::Maui::Animations::Animation
public class Animation : Microsoft.Maui.Animations.Animation
type Animation = class
inherit Animation
Public Class Animation
Inherits Animation
- Inheritance
Constructors
Animation() |
Creates a new Animation object with default values. |
Animation(Action<Double>, Double, Double, Easing, Action) |
Creates a new Animation object with the specified parameters. |
Fields
animationManger |
A reference to the IAnimationManager that manages this animation. (Inherited from Animation) |
childrenAnimations |
Collection of child animations associated to this animation. (Inherited from Animation) |
Properties
AnimationManager |
A reference to the IAnimationManager that manages this animation. (Inherited from Animation) |
CurrentTime |
The current timestamp (in seconds) of the animation. (Inherited from Animation) |
Duration |
The duration of this animation in seconds. (Inherited from Animation) |
Easing |
The Easing function that is applied to this animation. (Inherited from Animation) |
Finished |
A callback that is invoked when this animation finishes. (Inherited from Animation) |
HasFinished |
Specifies whether this animation has finished. (Inherited from Animation) |
IsDisposed |
Gets a value that specifies if this animation has been disposed. (Inherited from Animation) |
IsEnabled |
Specifies if this animation is currently enabled. |
IsPaused |
Specifies whether this animation is currently paused. (Inherited from Animation) |
Name |
The name of this animation. (Inherited from Animation) |
Progress |
Progress of this animation in percentage. (Inherited from Animation) |
Repeats |
Specifies whether this animation should repeat. (Inherited from Animation) |
StartDelay |
The delay (in seconds) taken into account before the animation starts. (Inherited from Animation) |
Step |
A callback that is invoked after each tick of this animation. (Inherited from Animation) |
Methods
Add(Double, Double, Animation) |
Adds an Animation object to this Animation that begins at |
Add(Double, Double, Animation) |
Adds a new child animation to this animation with the specified parameters. (Inherited from Animation) |
Commit(IAnimatable, String, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>) |
Runs the |
Commit(IAnimationManager) |
Sets the IAnimationManager for this animation. (Inherited from Animation) |
CreateAutoReversing() |
Creates an animation that includes both the original animation and a reversed version of the same animation. (Inherited from Animation) |
CreateReverse() |
Creates a reversed version of the current animation, including reversing the child animations. (Inherited from Animation) |
Dispose() | (Inherited from Animation) |
Dispose(Boolean) | (Inherited from Animation) |
GetCallback() |
Returns a callback that recursively runs the eased animation step on this Animation object and those of its children that have begun and not finished. |
GetEnumerator() |
Provides an IEnumerator of the child animations. (Inherited from Animation) |
Insert(Double, Double, Animation) |
Adds an Animation object to this Animation that begins at |
OnTick(Double) |
Executes the logic to update all animations within this animation. (Inherited from Animation) |
Pause() |
Pauses the animation. (Inherited from Animation) |
RemoveFromParent() |
Removes this animation from it's parent. If there is no parent, nothing will happen. (Inherited from Animation) |
Reset() | |
Resume() |
Resumes the animation. (Inherited from Animation) |
Tick(Double) |
Method to trigger an update for this animation. (Inherited from Animation) |
Update(Double) |
Updates this animation by updating Progress and invoking Step. (Inherited from Animation) |
WithConcurrent(Action<Double>, Double, Double, Easing, Double, Double) |
Creates a new Animation object with the specified |
WithConcurrent(Animation, Double, Double) |
Adds |