次の方法で共有


AnimationExtensions.Animate Method

Definition

Overloads

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

Sets the specified parameters and starts the animation.

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

Sets the specified parameters and starts the animation.

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

Sets the specified parameters and starts the animation.

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>, IAnimationManager)

Sets the specified parameters and starts the animation.

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

Source:
AnimationExtensions.cs
Source:
AnimationExtensions.cs

Sets the specified parameters and starts the animation.

public static void Animate (this Microsoft.Maui.Controls.IAnimatable self, string name, Microsoft.Maui.Controls.Animation animation, uint rate = 16, uint length = 250, Microsoft.Maui.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Microsoft.Maui.Controls.IAnimatable * string * Microsoft.Maui.Controls.Animation * uint32 * uint32 * Microsoft.Maui.Easing * Action<double, bool> * Func<bool> -> unit
<Extension()>
Public Sub Animate (self As IAnimatable, name As String, animation As Animation, Optional rate As UInteger = 16, Optional length As UInteger = 250, Optional easing As Easing = Nothing, Optional finished As Action(Of Double, Boolean) = Nothing, Optional repeat As Func(Of Boolean) = Nothing)

Parameters

self
IAnimatable

The object on which this method will be run.

name
String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

animation
Animation

The animation to run.

rate
UInt32

The time, in milliseconds, between frames.

length
UInt32

The number of milliseconds over which to interpolate the animation.

easing
Easing

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

finished
Action<Double,Boolean>

An action to call when the animation is finished.

repeat
Func<Boolean>

A function that returns true if the animation should continue.

Applies to

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

Source:
AnimationExtensions.cs
Source:
AnimationExtensions.cs

Sets the specified parameters and starts the animation.

public static void Animate (this Microsoft.Maui.Controls.IAnimatable self, string name, Action<double> callback, uint rate = 16, uint length = 250, Microsoft.Maui.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Microsoft.Maui.Controls.IAnimatable * string * Action<double> * uint32 * uint32 * Microsoft.Maui.Easing * Action<double, bool> * Func<bool> -> unit
<Extension()>
Public Sub Animate (self As IAnimatable, name As String, callback As Action(Of Double), Optional rate As UInteger = 16, Optional length As UInteger = 250, Optional easing As Easing = Nothing, Optional finished As Action(Of Double, Boolean) = Nothing, Optional repeat As Func(Of Boolean) = Nothing)

Parameters

self
IAnimatable

The object on which this method will be run.

name
String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

callback
Action<Double>

An action that is called with successive animation values.

rate
UInt32

The time, in milliseconds, between frames.

length
UInt32

The number of milliseconds over which to interpolate the animation.

easing
Easing

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

finished
Action<Double,Boolean>

An action to call when the animation is finished.

repeat
Func<Boolean>

A function that returns true if the animation should continue.

Applies to

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

Source:
AnimationExtensions.cs
Source:
AnimationExtensions.cs

Sets the specified parameters and starts the animation.

public static void Animate (this Microsoft.Maui.Controls.IAnimatable self, string name, Action<double> callback, double start, double end, uint rate = 16, uint length = 250, Microsoft.Maui.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Microsoft.Maui.Controls.IAnimatable * string * Action<double> * double * double * uint32 * uint32 * Microsoft.Maui.Easing * Action<double, bool> * Func<bool> -> unit
<Extension()>
Public Sub Animate (self As IAnimatable, name As String, callback As Action(Of Double), start As Double, end As Double, Optional rate As UInteger = 16, Optional length As UInteger = 250, Optional easing As Easing = Nothing, Optional finished As Action(Of Double, Boolean) = Nothing, Optional repeat As Func(Of Boolean) = Nothing)

Parameters

self
IAnimatable

The object on which this method will be run.

name
String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

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 stop the animation.

rate
UInt32

The time, in milliseconds, between frames.

length
UInt32

The number of milliseconds over which to interpolate the animation.

easing
Easing

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

finished
Action<Double,Boolean>

An action to call when the animation is finished.

repeat
Func<Boolean>

A function that returns true if the animation should continue.

Applies to

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>, IAnimationManager)

Source:
AnimationExtensions.cs
Source:
AnimationExtensions.cs

Sets the specified parameters and starts the animation.

public static void Animate<T> (this Microsoft.Maui.Controls.IAnimatable self, string name, Func<double,T> transform, Action<T> callback, uint rate = 16, uint length = 250, Microsoft.Maui.Easing easing = default, Action<T,bool> finished = default, Func<bool> repeat = default, Microsoft.Maui.Animations.IAnimationManager animationManager = default);
static member Animate : Microsoft.Maui.Controls.IAnimatable * string * Func<double, 'T> * Action<'T> * uint32 * uint32 * Microsoft.Maui.Easing * Action<'T, bool> * Func<bool> * Microsoft.Maui.Animations.IAnimationManager -> unit
<Extension()>
Public Sub Animate(Of T) (self As IAnimatable, name As String, transform As Func(Of Double, T), callback As Action(Of T), Optional rate As UInteger = 16, Optional length As UInteger = 250, Optional easing As Easing = Nothing, Optional finished As Action(Of T, Boolean) = Nothing, Optional repeat As Func(Of Boolean) = Nothing, Optional animationManager As IAnimationManager = Nothing)

Type Parameters

T

Parameters

self
IAnimatable

The object on which this method will be run.

name
String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

transform
Func<Double,T>

A function that maps animation times to new time values.

callback
Action<T>

An action that is called with successive animation values.

rate
UInt32

The time, in milliseconds, between frames.

length
UInt32

The number of milliseconds over which to interpolate the animation.

easing
Easing

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

finished
Action<T,Boolean>

An action to call when the animation is finished.

repeat
Func<Boolean>

A function that returns true if the animation should continue.

animationManager
IAnimationManager

Applies to