IUIAnimationInterpolator::SetInitialValueAndVelocity method
Sets the initial value and velocity at the start of the transition.
Syntax
HRESULT SetInitialValueAndVelocity( [in] DOUBLE initialValue, [in] DOUBLE initialVelocity );
Parameters
- initialValue [in]
-
The initial value.
- initialVelocity [in]
-
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
|
Minimum supported client |
Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also