CompositionEasingFunction.CreateElasticEasingFunction 方法

定义

创建 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

参数

owner
Compositor

用于创建缓动函数的 Compositor

mode
CompositionEasingFunctionMode

用于指定动画内插方式的枚举值之一。

oscillations
Int32

int

目标在动画目标位置来回滑动的次数。 此值必须大于等于 0。

springiness
Single

float

一个正数,指定弹簧的刚度。

返回

返回创建的 ElasticEasingFunction 对象。

Windows 要求

设备系列
Windows 10, version 2104 (在 10.0.20348.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v12.0 中引入)

适用于