XREasingMode (Compact 2013)
3/28/2014
This enumeration describes when the easing function is applied to an animation.
Syntax
enum XREasingMode
{
XREasingMode_EaseOut=0,
XREasingMode_EaseIn=1,
XREasingMode_EaseInOut=2,
};
Members
- XREasingMode_EaseOut
Applies the easing function to the end of the associated animation. Interpolation follows 100-percent interpolation minus the output of the formula associated with the easing function.
- XREasingMode_EaseIn
Applies the easing function to the beginning of the associated animation. Interpolation follows the mathematical formula associated with the easing function.
- XREasingMode_EaseInOut
Applies the easing function to the beginning and the end of the associated animation. Interpolation uses XREasingMode_EaseIn for the first half of the animation and XREasingMode_EaseOut for the second half.
Remarks
The animation associated with the easing function can be a storyboard or a segment between key frames. XREasingMode is set inside the IXREasingFunctionBase object, which is applied to either IXRVisualTransition or IXRTimeline-derived objects such as IXRDoubleAnimation, IXRColorAnimation, and so on.
Easing functions, such as IXRBackEase and IXRBounceEase, inherit the IXREasingFunctionBase class. Use the IXREasingFunctionBase::SetEasingMode method to specify the easing mode. Use the IXREasingFunctionBase::Ease method to specify the time span over which the easing interpolates.
Note
Custom easing functions are not supported in XAML for Windows Embedded.
You can instantiate the available functions and add them to the IXREasingFunction through SetEasingMode. After you add them, the functions apply those effects to the animations that are described in the following graphs.
The following graphs show the effects of different easing modes, where f(t) represents the animation function and t represents time. The steeper the curve, the faster the animation proceeds.
Easing function |
XREasingMode_EaseIn |
XREasingMode_EaseOut |
XREasingMode_EaseInOut |
---|---|---|---|
The Power property is set to 4 in the illustrations in this row. |
|||
.NET Framework Equivalent
System.Windows.Media.Animation.EasingMode
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |
See Also
Reference
XAML for Windows Embedded Enumerations
IXREasingFunctionBase::SetEasingMode
IXREasingFunctionBase::GetEasingMode