Compartilhar via


Animation Constructors

Definition

Overloads

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.

Animation()

Source:
Animation.cs
Source:
Animation.cs

Creates a new Animation object with default values.

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

Applies to

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

Source:
Animation.cs
Source:
Animation.cs

Creates a new Animation object with the specified parameters.

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

Parameters

callback
Action<Double>

An action that is called with successive animation values.

start
Double

The fraction into the current animation at which to start the animation.

end
Double

The fraction into the current animation at which to end the animation.

easing
Easing

The easing function to use to transition in, out, or in and out of the animation.

finished
Action

An action to call when the animation is finished.

Applies to