IEasingFunction 接口

定义

定义缓动函数的基本功能。Defines the basic functionality of an easing function.

public interface class IEasingFunction
public interface IEasingFunction
type IEasingFunction = interface
Public Interface IEasingFunction
派生

注解

此接口允许您通过采用规范化时间(0到1之间的值)并返回所需的值来创建自己的缓动函数。This interface allows you to create your own easing functions by taking normalized time (a value from 0 through 1) and returning your desired value.

此接口表示规范化时间(进度)的转换。This interface represents a transformation of normalized time (progress). 动画用于转换其进度。Animations use it to transform their progress. 实现此接口的类可以控制动画的执行速度。Classes that implement this interface can control the pace at which an animation is performed.

从类派生 EasingFunctionBase 以实现你自己的自定义缓动函数。Derive from the EasingFunctionBase class to implement your own custom easing functions.

备注

缓动函数的 WPF 实现与 Silverlight 实现兼容。The WPF implementation of easing functions is compatible with the Silverlight implementation. 如果你的 XAML 使用一种技术中的缓动函数,则无需在另一种技术中修改即可使用。If you have XAML that uses easing functions in one technology, it is usable without modification in the other.

方法

Ease(Double)

转换规范化时间以控制动画的节奏。Transforms normalized time to control the pace of an animation.

适用于

另请参阅