LinearEasingFunction LinearEasingFunction LinearEasingFunction LinearEasingFunction Class

Definition

Represents a linear function for interpolating between animation key frames.

The linear function of another supported easing function that can be used with KeyFrame Animations. When used, the animating property will change in between two KeyFrames linearly over time.

public : sealed class LinearEasingFunction : CompositionEasingFunction, ILinearEasingFunctionpublic sealed class LinearEasingFunction : CompositionEasingFunction, ILinearEasingFunctionPublic NotInheritable Class LinearEasingFunction Inherits CompositionEasingFunction Implements ILinearEasingFunction// This API is not available in Javascript.
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

Examples


// Construct the linear function
LinearEasingFunction linear = _compositor.CreateLinearEasingFunction();
ScalarKeyFrameAnimation animation = _compositor.CreateScalarKeyFrameAnimation();

// Apply the cubic-bezier to a KeyFrame
animation.InsertKeyFrame(0.0f, 1.0f);
animation.InsertKeyFrame(1.0f, 0.0f, linear);

See Also