Partager via


IXRColorAnimation::SetEasingFunction (Compact 2013)

3/28/2014

This method sets the easing function that is applied to this animation.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetEasingFunction(
    __in IXRDependencyObject* pEasingFunction
) = 0;

Parameters

  • pEasingFunction
    [in] Pointer to an IXRDependencyObject object that represents the easing function that is to be applied to this animation.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

By using easing functions you can create a variety of specialized animation effects that include bouncing, spring oscillations, and various magnitude acceleration and deceleration animations. These functions were designed primarily for animating a change in position or size rather than animating a change in color; however, you might have a scenario in which you would apply an easing function to an IXRColorAnimation object. For example, you could use an IXRPowerEase easing function to create a color animation that animates through colors rapidly at first, but then slows down before reaching the end of the animation sequence.

You can use one of several easing functions provided by the XAML for Windows Embedded runtime to create common effects. For a list of easing functions, see XREasingMode. Most easing functions include properties that are used to customize the effects of the easing function.

.NET Framework Equivalent

System.Windows.Media.Animation.ColorAnimation.EasingFunction

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRColorAnimation
IXREasingDoubleKeyFrame
IXRColorAnimation::SetBy
IXRColorAnimation::SetFrom
IXRColorAnimation::SetTo