Dela via


PathKeyFrameAnimation.InsertKeyFrame Method

Definition

Overloads

InsertKeyFrame(Single, CompositionPath)

Inserts a key frame.

InsertKeyFrame(Single, CompositionPath, CompositionEasingFunction)

Inserts a key frame with the specified easing.

InsertKeyFrame(Single, CompositionPath)

Inserts a key frame.

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, CompositionPath ^ path) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
void InsertKeyFrame(float const& normalizedProgressKey, CompositionPath const& path);
[Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
public void InsertKeyFrame(float normalizedProgressKey, CompositionPath path);
function insertKeyFrame(normalizedProgressKey, path)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, path As CompositionPath)

Parameters

normalizedProgressKey
Single

float

The time the key frame should occur at, expressed as a percentage of the animation Duration. Allowed value is from 0.0 to 1.0.

path
CompositionPath

The path used to define the value of the key frame.

Attributes

Applies to

InsertKeyFrame(Single, CompositionPath, CompositionEasingFunction)

Inserts a key frame with the specified easing.

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, CompositionPath ^ path, CompositionEasingFunction ^ easingFunction) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
void InsertKeyFrame(float const& normalizedProgressKey, CompositionPath const& path, CompositionEasingFunction const& easingFunction);
[Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
public void InsertKeyFrame(float normalizedProgressKey, CompositionPath path, CompositionEasingFunction easingFunction);
function insertKeyFrame(normalizedProgressKey, path, easingFunction)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, path As CompositionPath, easingFunction As CompositionEasingFunction)

Parameters

normalizedProgressKey
Single

float

The time the key frame should occur at, expressed as a percentage of the animation Duration. Allowed value is from 0.0 to 1.0.

path
CompositionPath

The path used to define the value of the key frame.

easingFunction
CompositionEasingFunction

The easing function to use when interpolating between frames.

Attributes

Applies to