IUIAnimationManager::ScheduleTransition method (uianimation.h)
Creates and schedules a single-transition storyboard.
Syntax
HRESULT ScheduleTransition(
[in] IUIAnimationVariable *variable,
[in] IUIAnimationTransition *transition,
[in] UI_ANIMATION_SECONDS timeNow
);
Parameters
[in] variable
The animation variable.
[in] transition
A transition to be applied to the animation variable.
[in] timeNow
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
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 |