Scalar​Key​Frame​Animation Scalar​Key​Frame​Animation Scalar​Key​Frame​Animation Class

Definition

A time-based animation that targets any Scalar-based property with one or more key frames.

public : sealed class ScalarKeyFrameAnimation : KeyFrameAnimation, IScalarKeyFrameAnimationpublic sealed class ScalarKeyFrameAnimation : KeyFrameAnimation, IScalarKeyFrameAnimationPublic NotInheritable Class ScalarKeyFrameAnimation Inherits KeyFrameAnimation Implements IScalarKeyFrameAnimation
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Remarks

An animation is associated with an object's property by calling CompositionObject::StartAnimation and specifying the property name and the animation. See the remarks section of CompositionObject::StartAnimation for a list of animatable properties.

Methods

InsertKeyFrame(Single, Single) InsertKeyFrame(Single, Single) InsertKeyFrame(Single, Single)

Inserts a key frame.

public : void InsertKeyFrame(float normalizedProgressKey, float value)public void InsertKeyFrame(Single normalizedProgressKey, Single value)Public Function InsertKeyFrame(normalizedProgressKey As Single, value As Single) As void
Parameters
normalizedProgressKey
float Single 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
float Single Single

The value of the key frame.

Attributes
See Also

InsertKeyFrame(Single, Single, CompositionEasingFunction) InsertKeyFrame(Single, Single, CompositionEasingFunction) InsertKeyFrame(Single, Single, CompositionEasingFunction)

Inserts a keyframe.

public : void InsertKeyFrame(float normalizedProgressKey, float value, CompositionEasingFunction easingFunction)public void InsertKeyFrame(Single normalizedProgressKey, Single value, CompositionEasingFunction easingFunction)Public Function InsertKeyFrame(normalizedProgressKey As Single, value As Single, easingFunction As CompositionEasingFunction) As void
Parameters
normalizedProgressKey
float Single 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
float Single Single

The value of the key frame.

easingFunction
CompositionEasingFunction CompositionEasingFunction CompositionEasingFunction

The easing function to use to interpolate between key frames.

Attributes
See Also

See Also