INormalizedKeyFrameAnimationBuilder<T>.KeyFrame Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a new normalized keyframe to the builder in use.
public Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<in T> KeyFrame (double 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 : double * 'T * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<'T>
Public Function KeyFrame (progress As Double, 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 INormalizedKeyFrameAnimationBuilder(Of In T)
Parameters
- progress
- Double
The normalized progress for the keyframe (must be in the [0, 1] range).
- 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.