Animation.Add(Double, Double, Animation) Method

Definition

Adds a new child animation to this animation with the specified parameters.

public:
 void Add(double beginAt, double duration, Microsoft::Maui::Animations::Animation ^ animation);
public void Add (double beginAt, double duration, Microsoft.Maui.Animations.Animation animation);
member this.Add : double * double * Microsoft.Maui.Animations.Animation -> unit
Public Sub Add (beginAt As Double, duration As Double, animation As Animation)

Parameters

beginAt
Double

Specifies a delay (in seconds) taken into account before the added child animation starts.

duration
Double

Specifies the duration (in seconds) that the added child animation should take.

animation
Animation

The Animation object to add to this animation as a child.

Exceptions

Thrown when beginAt or duration is less than 0 or more than 1.

Thrown when duration is less than or equal to beginAt.

Applies to