Class EasingFunctionBase
Provides the base class for all the easing functions. You can create your own custom easing functions by inheriting from this class.
Inheritance
System.Object
EasingFunctionBase
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public abstract class EasingFunctionBase : DependencyObject, IDependencyObject, IEasingFunction
Constructors
| Improve this Doc View SourceEasingFunctionBase()
Initializes a new instance of the EasingFunctionBase class.
Declaration
protected EasingFunctionBase()
Fields
| Improve this Doc View SourceEasingModeProperty
Identifies the EasingMode dependency property.
Declaration
public static readonly DependencyProperty EasingModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceEasingMode
Gets or sets a value that specifies how the animation interpolates.
Declaration
public EasingMode EasingMode { get; set; }
Property Value
Type | Description |
---|---|
EasingMode |
Methods
| Improve this Doc View SourceEase(Double)
Transforms normalized time to control the pace of an animation.
Declaration
public double Ease(double normalizedTime)
Parameters
Type | Name | Description |
---|---|---|
System.Double | normalizedTime | Normalized time (progress) of the animation. |
Returns
Type | Description |
---|---|
System.Double | A double that represents the transformed progress. |
EaseInCore(Double)
Provides the logic portion of the easing function that you can override to produce the EaseIn mode of the custom easing function.
Declaration
protected abstract double EaseInCore(double normalizedTime)
Parameters
Type | Name | Description |
---|---|---|
System.Double | normalizedTime | Normalized time (progress) of the animation. |
Returns
Type | Description |
---|---|
System.Double | A double that represents the transformed progress. |