Delen via


CompositionEasingFunction.CreateElasticEasingFunction Method

Definition

Creates an 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

One of the enumeration values that specifies how the animation interpolates.

oscillations
Int32

int

The number of times the target slides back and forth over the animation destination. This value must be greater than or equal to 0.

springiness
Single

float

A positive number that specifies the stiffness of the spring.

Returns

Returns the created ElasticEasingFunction object.

Windows requirements

Device family
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v12.0)

Applies to