IUIAnimationManager::ScheduleTransition method
Creates and schedules a single-transition storyboard.
Syntax
HRESULT ScheduleTransition( [in] IUIAnimationVariable *variable, [in] IUIAnimationTransition *transition, [in] UI_ANIMATION_SECONDS timeNow );
Parameters
- variable [in]
-
The animation variable.
- transition [in]
-
A transition to be applied to the animation variable.
- timeNow [in]
-
The current system time.
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
This method schedules a new storyboard by creating the storyboard, applying the specified transition to the specified variable, and then scheduling the storyboard.
Examples
The following example creates a storyboard for a specified transition and animation variable.
// Get the current time and schedule a single-transition storyboard UI_ANIMATION_SECONDS secondsNow; hr = m_pAnimationTimer->GetTime( &secondsNow ); if (SUCCEEDED(hr)) { hr = m_pAnimationManager->ScheduleTransition( m_pAnimationVariableY, pTransitionParabolic, secondsNow ); ... }
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
- IUIAnimationManager
- IUIAnimationTimer::GetTime
- IUIAnimationTransition
- IUIAnimationTransitionLibrary
- IUIAnimationStoryboard
- IUIAnimationVariable