IUIAnimationStoryboard2::AddKeyframeAfterTransition method (uianimation.h)

Adds a keyframe at the end of the specified transition.

Syntax

HRESULT AddKeyframeAfterTransition(
  [in]  IUIAnimationTransition2 *transition,
  [out] UI_ANIMATION_KEYFRAME   *keyframe
);

Parameters

[in] transition

The transition after which a keyframe is to be added.

[out] keyframe

The keyframe to be added.

Return value

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

Return code Description
UI_E_TRANSITION_NOT_IN_STORYBOARD
The transition has not been added to the storyboard.
 

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

Remarks

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.

Requirements

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

See also

IUIAnimationStoryboard2

IUIAnimationStoryboard2::AddKeyframeAtOffset

IUIAnimationStoryboard2::AddTransition

IUIAnimationStoryboard2::AddTransitionAtKeyframe

IUIAnimationStoryboard2::AddTransitionBetweenKeyframes

IUIAnimationTransition2

IUIAnimationTransitionLibrary2

UI_ANIMATION_KEYFRAME