Share via


IXRPowerEase::SetPower (Compact 2013)

3/28/2014

This method sets the exponential power of the animation interpolation. For example, a value of 7 creates an animation interpolation curve that follows the formula f(t) = t7.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetPower(
    __in float Power
) = 0;

Parameters

  • Power
    [in] Float value that represents the exponential power of the animation interpolation. This value must be greater than or equal to 0 (zero). The default value is 2.

Return Value

Returns an HRESULT that indicates success or returns an error code.

Remarks

The IXRPowerEase function can be substituted for IXRQuadraticEase, IXRCubicEase, IXRQuarticEase, and IXRQuinticEase. For example, if you wanted to use a IXRPowerEase function to create the same behavior as a IXRQuadraticEase function (f(t) = t2), use the IXRPowerEase::SetPower method to specify a Power property value of 2.

.NET Framework Equivalent

System.Windows.Media.Animation.PowerEase.Power

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPowerEase