IUIAnimationInterpolator::SetInitialValueAndVelocity method (uianimation.h)

Sets the initial value and velocity at the start of the transition.

Syntax

HRESULT SetInitialValueAndVelocity(
  [in] DOUBLE initialValue,
  [in] DOUBLE initialVelocity
);

Parameters

[in] initialValue

The initial value.

[in] initialVelocity

The initial velocity.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See Windows Animation Error Codes for a list of error codes.

Remarks

Windows Animation always calls SetInitialValueAndVelocity before calling the other methods of IUIAnimationInterpolator at different offsets. However, it can be called multiple times with different parameters. Interpolators can cache internal state to improve performance, but they must update this cached state each time SetInitialValueAndVelocity is called and ensure that the results of subsequent calls to these methods reflect the updated state.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also

IUIAnimationInterpolator