IXRDoubleAnimation::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
Easing functions allow you to apply custom mathematical formulas to your animations. For example, you may want an object to realistically bounce or behave as though it were on a spring. You could use keyframe or even from/to/by animations to approximate these effects, but it would take a significant amount of work, and the animation would be less accurate than using a mathematical formula.
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 fine tune the effects of the easing function.
.NET Framework Equivalent
System.Windows.Media.Animation.DoubleAnimation.EasingFunction
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |
See Also
Reference
IXRDoubleAnimation
IXREasingDoubleKeyFrame
IXRDoubleAnimation::SetBy
IXRDoubleAnimation::SetFrom
IXRDoubleAnimation::SetTo