Class BounceEase
Represents an easing function that creates an animated bouncing effect.
Implements
Inherited Members
Namespace: System.Windows.Media.Animation
Assembly: OpenSilver.dll
Syntax
public class BounceEase : EasingFunctionBase, IDependencyObject, IEasingFunction
Fields
| Improve this Doc View SourceBouncesProperty
Identifies the Bounces dependency property.
Declaration
public static readonly DependencyProperty BouncesProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
BouncinessProperty
Identifies the Bounciness dependency property.
Declaration
public static readonly DependencyProperty BouncinessProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBounces
Gets or sets the number of bounces.
Declaration
public int Bounces { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of bounces. The value must be greater or equal to zero. Negative values will resolve to zero. The default is 3. |
Bounciness
Gets or sets a value that specifies how bouncy the bounce animation is. Low values of this property result in bounces with little lose of height between bounces (more bouncy) while high values result in dampened bounces (less bouncy).
Declaration
public double Bounciness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The value that specifies how bouncy the bounce animation is. This value must be positive. The default value is 2. |
Methods
| Improve this Doc View SourceEaseInCore(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 override 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. |