Share via


IXRQuinticEase (Compact 2013)

3/28/2014

This class includes an easing function that helps create animations that accelerate or decelerate using the formula f(t) = t5.

Syntax

class IXRQuinticEase : public IXREasingFunctionBase

Inheritance Hierarchy

IXRDependencyObject

    IXREasingFunctionBase

        IXRQuinticEase

Methods

This class provides no new methods. All of its methods are inherited from IXREasingFunctionBase.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

You can control whether the animation accelerates, decelerates, or both, by passing one of the XREasingMode enumerated values to the inherited IXREasingFunctionBase::SetEasingMode method. The following graphs demonstrate the different values of the easing mode, where f(t) represents the animation progress and t represents time.

Easing function

XREasingMode_EaseIn

XREasingMode_EaseOut

XREasingMode_EaseInOut

IXRQuinticEase

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

Note

You can use IXRPowerEase to create the same behavior as IXRCubicEase, IXRQuadraticEase, IXRQuarticEase, and IXRQuinticEase by using the Power property. For example, if you want to use IXRPowerEase to substitute for IXRCubicEase, use the IXRPowerEase::SetPower method to specify a Power value of 3.

When you create a class instance, use an IXRQuinticEasePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can apply this easing function to an animation in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the QuinticEase Class on MSDN.

There are several other easing functions besides IXRQuinticEase that you can explore using the following sample:

Run the sample

.NET Framework Equivalent

System.Windows.Media.Animation.QuinticEase

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Animation Storyboards
IXREasingFunctionBase::SetEasingMode