Compartir a través de


Animation Constructors

Definition

Overloads

Animation()

Instantiate a new Animation object.

Animation(List<Animation>)

Instantiate a new Animation object that consists of the given list of child animations.

Animation(Action<Double>, Double, Double, Easing, Action)

Instantiate a new Animation object with the given parameters.

Animation()

Source:
Animation.cs
Source:
Animation.cs

Instantiate a new Animation object.

public:
 Animation();
public Animation ();
Public Sub New ()

Applies to

Animation(List<Animation>)

Source:
Animation.cs
Source:
Animation.cs

Instantiate a new Animation object that consists of the given list of child animations.

public:
 Animation(System::Collections::Generic::List<Microsoft::Maui::Animations::Animation ^> ^ animations);
public Animation (System.Collections.Generic.List<Microsoft.Maui.Animations.Animation> animations);
new Microsoft.Maui.Animations.Animation : System.Collections.Generic.List<Microsoft.Maui.Animations.Animation> -> Microsoft.Maui.Animations.Animation
Public Sub New (animations As List(Of Animation))

Parameters

animations
List<Animation>

A List<T> that contains Animation objects that will be children of the newly instantiated animation.

Applies to

Animation(Action<Double>, Double, Double, Easing, Action)

Source:
Animation.cs
Source:
Animation.cs

Instantiate a new Animation object with the given parameters.

public Animation (Action<double> callback, double start = 0, double duration = 1, Microsoft.Maui.Easing? easing = default, Action? finished = default);
new Microsoft.Maui.Animations.Animation : Action<double> * double * double * Microsoft.Maui.Easing * Action -> Microsoft.Maui.Animations.Animation
Public Sub New (callback As Action(Of Double), Optional start As Double = 0, Optional duration As Double = 1, Optional easing As Easing = Nothing, Optional finished As Action = Nothing)

Parameters

callback
Action<Double>

The Action<T> that is invoked after each tick of this animation.

start
Double

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

duration
Double

Specifies the duration that this animation should take in seconds.

easing
Easing

The easing function to apply to this animation.

finished
Action

A callback Action<T> that is invoked after the animation has finished.

Applies to