Compartilhar via


Animation.WithConcurrent Method

Definition

Overloads

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.

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)

Source:
Animation.cs
Source:
Animation.cs

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

public Microsoft.Maui.Controls.Animation WithConcurrent (Microsoft.Maui.Controls.Animation animation, double beginAt = 0, double finishAt = 1);
member this.WithConcurrent : Microsoft.Maui.Controls.Animation * double * double -> Microsoft.Maui.Controls.Animation
Public Function WithConcurrent (animation As Animation, Optional beginAt As Double = 0, Optional finishAt As Double = 1) As Animation

Parameters

animation
Animation

The animation to add.

beginAt
Double

The fraction into this animation at which the added child animation will begin animating.

finishAt
Double

The fraction into this animation at which the added child animation will stop animating.

Returns

Applies to

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

Source:
Animation.cs
Source:
Animation.cs

Creates a new Animation object with the specified callback, and adds it to the children of this Animation object.

public Microsoft.Maui.Controls.Animation WithConcurrent (Action<double> callback, double start = 0, double end = 1, Microsoft.Maui.Easing easing = default, double beginAt = 0, double finishAt = 1);
member this.WithConcurrent : Action<double> * double * double * Microsoft.Maui.Easing * double * double -> Microsoft.Maui.Controls.Animation
Public Function WithConcurrent (callback As Action(Of Double), Optional start As Double = 0, Optional end As Double = 1, Optional easing As Easing = Nothing, Optional beginAt As Double = 0, Optional finishAt As Double = 1) As Animation

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.

beginAt
Double

The fraction into this animation at which the added child animation will begin animating.

finishAt
Double

The fraction into this animation at which the added child animation will stop animating.

Returns

Applies to