Xamarin.Forms Guides | Samples

Xamarin.Forms.Easing Class

Functions that modify values non-linearly, generally used for animations.

See Also: Easing

Syntax

public class Easing

Remarks

Easing functions are applied to input values in the range [0,1]. The cubic easing functions are often considered to look most natural.

If developers wish to use their own easing functions, they should return a value of 0 for an input of 0 and a value of 1 for an input of 1 or the animation will have a jump.

The predefined Easing functions have the following forms:

MemberGraph
Easing.BounceIn

Easing.BounceOut

Easing.CubicIn

Easing.CubicInOut

Easing.CubicOut

Easing.Linear

Easing.SinIn

Easing.SinInOut

Easing.SinOut

Easing.SpringIn

Easing.SpringOut

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Easing are listed below.

See Also: Object

Public Constructors

Creates a new Easing object with the easingFunc function.

Public Fields

static readonly
BounceInEasing. Jumps towards, and then bounces as it settles at the final value.
static readonly
BounceOutEasing. Leaps to final values, bounces 3 times, and settles.
static readonly
CubicInEasing. Starts slowly and accelerates.
static readonly
CubicInOutEasing. Accelerates and decelerates. Often a natural-looking choice.
static readonly
CubicOutEasing. Starts quickly and the decelerates.
static readonly
LinearEasing. Linear transformation.
static readonly
SinInEasing. Smoothly accelerates.
static readonly
SinInOutEasing. Accelerates in and decelerates out.
static readonly
SinOutEasing. Smoothly decelerates.
static readonly
SpringInEasing. Moves away and then leaps toward the final value.
static readonly
SpringOutEasing. Overshoots and then returns.

Public Methods

Ease(Double) : Double
Applies the easing function to the specified value v.

Public Operators

static
Conversion to Xamarin.Forms.Easing(Implicit)Converts a function into an Easing.