Skip to content

Latest commit

 

History

History
151 lines (108 loc) · 5.74 KB

nf-uianimation-iuianimationstoryboard-addtransitionbetweenkeyframes.md

File metadata and controls

151 lines (108 loc) · 5.74 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:uianimation.IUIAnimationStoryboard.AddTransitionBetweenKeyframes
IUIAnimationStoryboard::AddTransitionBetweenKeyframes (uianimation.h)
Adds a transition between two keyframes. (IUIAnimationStoryboard.AddTransitionBetweenKeyframes)
AddTransitionBetweenKeyframes
AddTransitionBetweenKeyframes method [Windows Animation]
AddTransitionBetweenKeyframes method [Windows Animation]
IUIAnimationStoryboard interface
IUIAnimationStoryboard interface [Windows Animation]
AddTransitionBetweenKeyframes method
IUIAnimationStoryboard.AddTransitionBetweenKeyframes
IUIAnimationStoryboard::AddTransitionBetweenKeyframes
uianimation.iuianimationstoryboard_addtransitionbetweenkeyframes
uianimation/IUIAnimationStoryboard::AddTransitionBetweenKeyframes
uianimation\iuianimationstoryboard_addtransitionbetweenkeyframes.htm
UIAnimation
75db41ef-526b-40aa-a62d-a4262cc8d80e
12/05/2018
AddTransitionBetweenKeyframes, AddTransitionBetweenKeyframes method [Windows Animation], AddTransitionBetweenKeyframes method [Windows Animation],IUIAnimationStoryboard interface, IUIAnimationStoryboard interface [Windows Animation],AddTransitionBetweenKeyframes method, IUIAnimationStoryboard.AddTransitionBetweenKeyframes, IUIAnimationStoryboard::AddTransitionBetweenKeyframes, uianimation.iuianimationstoryboard_addtransitionbetweenkeyframes, uianimation/IUIAnimationStoryboard::AddTransitionBetweenKeyframes
uianimation.h
Windows
Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps \| UWP apps]
None supported
UIAnimation.idl
UIAnimation.dll
Windows
19H1
IUIAnimationStoryboard::AddTransitionBetweenKeyframes
uianimation/IUIAnimationStoryboard::AddTransitionBetweenKeyframes
c++
APIRef
kbSyntax
COM
UIAnimation.dll
IUIAnimationStoryboard.AddTransitionBetweenKeyframes

IUIAnimationStoryboard::AddTransitionBetweenKeyframes

-description

Adds a transition between two keyframes.

-parameters

-param variable [in]

The animation variable for which the transition is to be added.

-param transition [in]

The transition to be added.

-param startKeyframe [in]

A keyframe that specifies the beginning of the new transition.

-param endKeyframe [in]

A keyframe that specifies the end of the new transition. It must not be possible for endKeyframe to appear earlier in the storyboard than startKeyframe.

-returns

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.

Return code Description
UI_E_TRANSITION_ALREADY_USED
This transition has already been added to a storyboard or has been added to a storyboard that has finished playing and been released.
UI_E_TRANSITION_ECLIPSED
The transition might eclipse the beginning of another transition in the storyboard.
UI_E_START_KEYFRAME_AFTER_END
The start keyframe might occur after the end keyframe.

-remarks

This method applies the specified transition to the specified variable in the storyboard, with the transition starting and ending at the specified keyframes. If the transition was created with a duration parameter specified, that duration is overwritten with the duration of time between the start and end keyframes. Otherwise, Windows Animation speeds up or slows down the transition as necessary.

A keyframe represents a moment in time within a storyboard and can be used to specify the start and end times of transitions. Because keyframes can be added at the ends of transitions, their offsets from the start of the storyboard may not be known until the storyboard is playing.

Transitions must be added in the order in which they will be played. A transition may begin playing before the preceding transition in the storyboard has finished, in which case the initial value and velocity seen by the new transition will be determined by the state of the preceding one. It must not be possible for a transition to begin before the start of the preceding transition.

-see-also

IUIAnimationStoryboard

IUIAnimationStoryboard::AddKeyframeAfterTransition

IUIAnimationStoryboard::AddKeyframeAtOffset

IUIAnimationStoryboard::AddTransition

IUIAnimationStoryboard::AddTransitionAtKeyframe

IUIAnimationTransition

IUIAnimationTransitionLibrary