Share via


Animation Class

Definition

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
Animation

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 beginAt and finishes at finishAt.

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 owner animation with the supplied parameters.

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 beginAt and finishes at finishAt.

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 callback, and adds it to the children of this Animation object.

WithConcurrent(Animation, Double, Double)

Adds animation to the children of this Animation object and sets the start and end times of animation to beginAt and finishAt, respectively.

Applies to