Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IUIAnimationStoryboard2::AddKeyframeAtOffset method

Adds a keyframe at the specified offset from an existing keyframe.

Syntax


HRESULT AddKeyframeAtOffset(
  [in]   UI_ANIMATION_KEYFRAME existingKeyframe,
  [in]   UI_ANIMATION_SECONDS offset,
  [out]  UI_ANIMATION_KEYFRAME *keyframe
);

Parameters

existingKeyframe [in]

The existing keyframe. To add a keyframe at an offset from the start of the storyboard, use the special keyframe UI_ANIMATION_KEYFRAME_STORYBOARD_START.

offset [in]

The offset from the existing keyframe at which a new keyframe is to be added.

keyframe [out]

The keyframe to be added.

Return value

If this 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

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

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationStoryboard2 is defined as AE289CD2-12D4-4945-9419-9E41BE034DF2

See also

IUIAnimationStoryboard2
IUIAnimationStoryboard2::AddKeyframeAfterTransition
IUIAnimationStoryboard2::AddTransitionAtKeyframe
IUIAnimationStoryboard2::AddTransitionBetweenKeyframes
UI_ANIMATION_KEYFRAME

 

 

Community Additions

Show:
© 2014 Microsoft. All rights reserved.