Share via


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

IXRBackEase

Gg158027.76738845-3f55-45bc-ba88-2e4a9902a9c4(en-us,WinEmbedded.80).jpg
Gg158027.03618911-bc09-4dfe-84ba-490d1f53d930(en-us,WinEmbedded.80).jpg
Gg158027.aa9e7466-74a6-40ea-9c79-dbb2969198eb(en-us,WinEmbedded.80).jpg

IXRBounceEase

Gg158027.98b448bc-3ecf-4495-a48d-c4e7af1c48ac(en-us,WinEmbedded.80).jpg
Gg158027.12480f85-efb9-47e3-b78c-28ad77a84fff(en-us,WinEmbedded.80).jpg
Gg158027.4affeecb-f363-4317-96e4-b7e70f829c39(en-us,WinEmbedded.80).jpg

IXRCircleEase

Gg158027.d526c55a-17c5-48e0-8ea0-08d3dd329d48(en-us,WinEmbedded.80).jpg
Gg158027.80cb0002-94f5-4daf-9bcb-19c49c3e10f0(en-us,WinEmbedded.80).jpg
Gg158027.9c3c6ace-f7e5-4304-909c-c7b7acc9ebff(en-us,WinEmbedded.80).jpg

IXRCubicEase

Gg158027.eec256bb-6552-4c35-ace5-922fcbd1f4fb(en-us,WinEmbedded.80).jpg
Gg158027.ff1cf51c-10ea-4c7c-a0b7-1e4454b2de44(en-us,WinEmbedded.80).jpg
Gg158027.3ecdb7de-b5e4-4941-a9de-0add33151754(en-us,WinEmbedded.80).jpg

IXRElasticEase

Gg158027.4e950b6e-11c0-4525-a8c4-3df31cd6d76d(en-us,WinEmbedded.80).jpg
Gg158027.fdbc9edd-bcc8-439f-a126-4203a9cd994a(en-us,WinEmbedded.80).jpg
Gg158027.e1cb733f-eaca-4330-9898-03a91684784b(en-us,WinEmbedded.80).jpg

IXRExponentialEase

Gg158027.fa03d570-1d68-462b-b142-07f2c5b9e8ad(en-us,WinEmbedded.80).jpg
Gg158027.62229ea3-0dcd-4572-b5f8-e3eec07e11ce(en-us,WinEmbedded.80).jpg
Gg158027.f50c59ef-dc6f-46d7-aec1-b7596e425530(en-us,WinEmbedded.80).jpg

IXRPowerEase

The Power property is set to 4 in the illustrations in this row.

Gg158027.729ddf04-2f30-437d-bbe4-f3aa44c9ef74(en-us,WinEmbedded.80).jpg
Gg158027.1381fe2e-4c07-4c98-bd7c-8bc04c0510ed(en-us,WinEmbedded.80).jpg
Gg158027.7d702ca2-e1f9-4c08-be4b-b956f6554063(en-us,WinEmbedded.80).jpg

IXRQuadraticEase

Gg158027.0ced104b-dd98-420f-bbbf-72830561287f(en-us,WinEmbedded.80).jpg
Gg158027.e309c751-eb1a-479b-8d43-d74b2afddb1d(en-us,WinEmbedded.80).jpg
Gg158027.fed73e70-13ea-467d-af54-1d21478134a2(en-us,WinEmbedded.80).jpg

IXRQuarticEase

Gg158027.729ddf04-2f30-437d-bbe4-f3aa44c9ef74(en-us,WinEmbedded.80).jpg
Gg158027.1381fe2e-4c07-4c98-bd7c-8bc04c0510ed(en-us,WinEmbedded.80).jpg
Gg158027.7d702ca2-e1f9-4c08-be4b-b956f6554063(en-us,WinEmbedded.80).jpg

IXRQuinticEase

Gg158027.c13f6e95-fd61-4f22-933c-94a885b81ebb(en-us,WinEmbedded.80).jpg
Gg158027.d62cf8c0-a7eb-43da-b89d-d94a76af857e(en-us,WinEmbedded.80).jpg
Gg158027.77c46263-d9a0-44f3-8770-26e1a7707f65(en-us,WinEmbedded.80).jpg

IXRSineEase

Gg158027.d15929e9-0e09-44e3-a400-2da123738975(en-us,WinEmbedded.80).jpg
Gg158027.223da2a3-45ba-4c96-98b7-b178cd5b7c42(en-us,WinEmbedded.80).jpg
Gg158027.134f392f-2bc7-42af-84f4-4f6f1c76fec8(en-us,WinEmbedded.80).jpg

.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