AnimationExtensions.Animate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Animate(IAnimatable, String, Action<Double>, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>) |
Sets the specified parameters and starts the animation. |
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>, 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>) |
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.
public static void Animate (this Xamarin.Forms.IAnimatable self, string name, Action<double> callback, uint rate = 16, uint length = 250, Xamarin.Forms.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Xamarin.Forms.IAnimatable * string * Action<double> * uint32 * uint32 * Xamarin.Forms.Easing * Action<double, bool> * Func<bool> -> unit
Parameters
- self
- IAnimatable
The object on which this method will be run.
- name
- System.String
An animation key that should be unique among its sibling and parent animations for the duration of the animation.
- callback
- System.Action<System.Double>
An action that is called with successive animation values.
- rate
- System.UInt32
The time, in milliseconds, between frames.
- length
- System.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
- System.Action<System.Double,System.Boolean>
An action to call when the animation is finished.
- repeat
- System.Func<System.Boolean>
A function that returns true if the animation should continue.
Applies to
Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)
Sets the specified parameters and starts the animation.
public static void Animate (this Xamarin.Forms.IAnimatable self, string name, Xamarin.Forms.Animation animation, uint rate = 16, uint length = 250, Xamarin.Forms.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Xamarin.Forms.IAnimatable * string * Xamarin.Forms.Animation * uint32 * uint32 * Xamarin.Forms.Easing * Action<double, bool> * Func<bool> -> unit
Parameters
- self
- IAnimatable
The object on which this method will be run.
- name
- System.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
- System.UInt32
The time, in milliseconds, between frames.
- length
- System.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
- System.Action<System.Double,System.Boolean>
An action to call when the animation is finished.
- repeat
- System.Func<System.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>)
Sets the specified parameters and starts the animation.
public static void Animate (this Xamarin.Forms.IAnimatable self, string name, Action<double> callback, double start, double end, uint rate = 16, uint length = 250, Xamarin.Forms.Easing easing = default, Action<double,bool> finished = default, Func<bool> repeat = default);
static member Animate : Xamarin.Forms.IAnimatable * string * Action<double> * double * double * uint32 * uint32 * Xamarin.Forms.Easing * Action<double, bool> * Func<bool> -> unit
Parameters
- self
- IAnimatable
The object on which this method will be run.
- name
- System.String
An animation key that should be unique among its sibling and parent animations for the duration of the animation.
- callback
- System.Action<System.Double>
An action that is called with successive animation values.
- start
- System.Double
The fraction into the current animation at which to start the animation.
- end
- System.Double
The fraction into the current animation at which to stop the animation.
- rate
- System.UInt32
The time, in milliseconds, between frames.
- length
- System.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
- System.Action<System.Double,System.Boolean>
An action to call when the animation is finished.
- repeat
- System.Func<System.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>)
Sets the specified parameters and starts the animation.
public static void Animate<T> (this Xamarin.Forms.IAnimatable self, string name, Func<double,T> transform, Action<T> callback, uint rate = 16, uint length = 250, Xamarin.Forms.Easing easing = default, Action<T,bool> finished = default, Func<bool> repeat = default);
static member Animate : Xamarin.Forms.IAnimatable * string * Func<double, 'T> * Action<'T> * uint32 * uint32 * Xamarin.Forms.Easing * Action<'T, bool> * Func<bool> -> unit
Type Parameters
- T
Parameters
- self
- IAnimatable
The object on which this method will be run.
- name
- System.String
An animation key that should be unique among its sibling and parent animations for the duration of the animation.
- transform
- System.Func<System.Double,T>
A function that maps animation times to new time values.
- callback
- System.Action<T>
An action that is called with successive animation values.
- rate
- System.UInt32
The time, in milliseconds, between frames.
- length
- System.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
- System.Action<T,System.Boolean>
An action to call when the animation is finished.
- repeat
- System.Func<System.Boolean>
A function that returns true if the animation should continue.