共用方式為


CompositionEasingFunction.CreateBounceEasingFunction 方法

定義

建立 BounceEasingFunction的實例。

public:
 static BounceEasingFunction ^ CreateBounceEasingFunction(Compositor ^ owner, CompositionEasingFunctionMode mode, int bounces, float bounciness);
 static BounceEasingFunction CreateBounceEasingFunction(Compositor const& owner, CompositionEasingFunctionMode const& mode, int const& bounces, float const& bounciness);
public static BounceEasingFunction CreateBounceEasingFunction(Compositor owner, CompositionEasingFunctionMode mode, int bounces, float bounciness);
function createBounceEasingFunction(owner, mode, bounces, bounciness)
Public Shared Function CreateBounceEasingFunction (owner As Compositor, mode As CompositionEasingFunctionMode, bounces As Integer, bounciness As Single) As BounceEasingFunction

參數

owner
Compositor

用來建立 easing 函式的 Compositor

mode
CompositionEasingFunctionMode

一個列舉值,這個值會指定動畫如何進行插補。

bounces
Int32

int

彈跳的次數。 此值必須大於或等於零。

bounciness
Single

float

指定彈跳動畫之彈性的值。 這個值必須是正數。

傳回

會傳回建立的 BounceEasingFunction 物件。

Windows 需求

裝置系列
Windows 10, version 2104 (已於 10.0.20348.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v12.0 引進)

適用於