Easing Class
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.
Functions that modify values non-linearly, generally used for animations.
public ref class Easing
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Converters.EasingTypeConverter))]
public class Easing
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Converters.EasingTypeConverter))>]
type Easing = class
Public Class Easing
- Inheritance
-
Easing
- Attributes
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.
Easing(Func<Double,Double>) |
Creates a new Easing object with the |
Bounce |
Jumps towards, and then bounces as it settles at the final value. |
Bounce |
Leaps to final values, bounces 3 times, and settles. |
Cubic |
Starts slowly and accelerates. |
Cubic |
Accelerates and decelerates. Often a natural-looking choice. |
Cubic |
Starts quickly and the decelerates. |
Linear |
Linear transformation. |
Sin |
Smoothly accelerates. |
Sin |
Accelerates in and decelerates out. |
Sin |
Smoothly decelerates. |
Spring |
Moves away and then leaps toward the final value. |
Spring |
Overshoots and then returns. |
Default |
The default easing function that is used. Defaults to CubicInOut. |
Ease(Double) |
Applies the easing function to the specified value |
Implicit(Func<Double,Double> to Easing) |
Converts a function into an Easing. |
Product | Versions |
---|---|
.NET MAUI | 8, 9 |
.NET MAUI feedback
.NET MAUI is an open source project. Select a link to provide feedback: