Share via


Animation Class

Definition

Encapsulates an animation, a collection of functions that modify properties over a user-perceptible time period.

public class Animation : System.Collections.IEnumerable
type Animation = class
    interface IEnumerable
Inheritance
System.Object
Animation
Implements
System.Collections.IEnumerable

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.

Properties

IsEnabled

Methods

Add(Double, Double, Animation)

Adds an Animation object to this Animation that begins at beginAt and finishes at finishAt.

Commit(IAnimatable, String, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

Runs the owner animation with the supplied parameters.

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()

Returns an enumerator that can be used to iterate over the child Animation objects of this Animation object.

Insert(Double, Double, Animation)

Adds an Animation object to this Animation that begins at beginAt and finishes at finishAt.

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