CompositionEasingFunction.CreateBounceEasingFunction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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
用于创建缓动函数的 Compositor 。
用于指定动画内插方式的枚举值之一。
- bounces
-
Int32
int
弹跳次数。 该值必须大于或等于零。
- bounciness
-
Single
float
用于指定弹跳动画的弹跳程度的值。 该值必须是正数。
返回
返回创建的 BounceEasingFunction 对象。
Windows 要求
设备系列 |
Windows 10, version 2104 (在 10.0.20348.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v12.0 中引入)
|