CompositionEasingFunction.CreateElasticEasingFunction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 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
用于创建缓动函数的合成器。
一个 值,该值指定动画的内插方式。
- oscillations
-
Int32
int
目标在动画目标位置来回滑动的次数。
- springiness
-
Single
float
春天的刚度。 弹簧值越小,弹簧越僵硬,弹性在每次振荡中降低的强度就越快。
返回
创建的 ElasticEasingFunction
对象。