Partager via


IXRVisualTransition::SetGeneratedEasingFunction (Compact 2013)

3/28/2014

This method sets the easing function applied to the generated animations.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetGeneratedEasingFunction(
    __in IXRDependencyObject* pGeneratedEasingFunction
) = 0;

Parameters

  • pGeneratedEasingFunction
    [in] Pointer to an object instance derived from IXRDependencyObject that represents the easing function to apply to the transition animation.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

An animation sequence is generated when switching between visual states if the duration of the transition is greater than 0 seconds. If the duration of the transition is 0 seconds, no animation is generated, and the IXRVisualTransition::SetGeneratedEasingFunction method does not return an error. To extend the duration of the transition between visual states, use the IXRVisualTransition::SetGeneratedDuration method.

.NET Framework Equivalent

System.Windows.VisualTransition.GeneratedEasingFunction

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRVisualTransition