ITimedKeyFrameAnimationBuilderExtensions.KeyFrame<T> Method

Definition

Adds a new timed keyframe to the builder in use.

public static Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<T> KeyFrame<T> (this Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<T> builder, int 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) where T : struct;
static member KeyFrame : Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<'T (requires 'T : struct)> * int * 'T * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function KeyFrame(Of T As Structure) (builder As ITimedKeyFrameAnimationBuilder(Of T), progress As Integer, 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 T)

Type Parameters

T

The type of values being set by the animation being constructed.

Parameters

progress
Int32

The timed progress for the keyframe (in milliseconds), 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