Share via


CompositionEasingFunction.CreateElasticEasingFunction Method

Definition

Creates a new instance of ElasticEasingFunction.

public:
 static ElasticEasingFunction ^ CreateElasticEasingFunction(Compositor ^ owner, CompositionEasingFunctionMode mode, int oscillations, float springiness);
 static ElasticEasingFunction CreateElasticEasingFunction(Compositor const& owner, CompositionEasingFunctionMode const& mode, int const& oscillations, float const& springiness);
public static ElasticEasingFunction CreateElasticEasingFunction(Compositor owner, CompositionEasingFunctionMode mode, int oscillations, float springiness);
function createElasticEasingFunction(owner, mode, oscillations, springiness)
Public Shared Function CreateElasticEasingFunction (owner As Compositor, mode As CompositionEasingFunctionMode, oscillations As Integer, springiness As Single) As ElasticEasingFunction

Parameters

owner
Compositor

The compositor used to create the easing function.

mode
CompositionEasingFunctionMode

A value that specifies how the animation interpolates.

oscillations
Int32

int

The number of times the target slides back and forth over the animation destination.

springiness
Single

float

The stiffness of the spring. The smaller the springiness value is, the stiffer the spring and the faster the elasticity decreases in intensity over each oscillation.

Returns

The created ElasticEasingFunction object.

Applies to

See also