共用方式為


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

用來建立 easing 函式的 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 引進)

適用於