ScalarKeyFrameAnimation.InsertKeyFrame Method

Definition

Overloads

InsertKeyFrame(Single, Single)

Inserts a key frame.

Equivalent WinUI method: Microsoft.UI.Composition.ScalarKeyFrameAnimation.InsertKeyFrame.

InsertKeyFrame(Single, Single, CompositionEasingFunction)

Inserts a keyframe.

Equivalent WinUI method: Microsoft.UI.Composition.ScalarKeyFrameAnimation.InsertKeyFrame.

InsertKeyFrame(Single, Single)

Inserts a key frame.

Equivalent WinUI method: Microsoft.UI.Composition.ScalarKeyFrameAnimation.InsertKeyFrame.

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

Parameters

normalizedProgressKey
Single

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.

value
Single

The value of the key frame.

Attributes

See also

Applies to

InsertKeyFrame(Single, Single, CompositionEasingFunction)

Inserts a keyframe.

Equivalent WinUI method: Microsoft.UI.Composition.ScalarKeyFrameAnimation.InsertKeyFrame.

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

Parameters

normalizedProgressKey
Single

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.

value
Single

The value of the key frame.

easingFunction
CompositionEasingFunction

The easing function to use to interpolate between key frames.

Attributes

See also

Applies to