ITimedKeyFrameAnimationBuilder<T>.KeyFrame Method

Definition

Adds a new timed keyframe to the builder in use.

public Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<in T> KeyFrame (TimeSpan progress, T value, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut);
abstract member KeyFrame : TimeSpan * 'T * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<'T>
Public Function KeyFrame (progress As TimeSpan, value As T, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut) As ITimedKeyFrameAnimationBuilder(Of In T)

Parameters

progress
TimeSpan

The timed progress for the keyframe, relative to the start of the animation.

value
T

The value for the new keyframe to add.

easingType
EasingType

The easing type to use to reach the new keyframe.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The easing mode to use to reach the new keyframe.

Returns

The same INormalizedKeyFrameAnimationBuilder<T> instance that the method was invoked upon.

Applies to