INormalizedKeyFrameAnimationBuilder<T>.ExpressionKeyFrame 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 expression keyframe to the builder in use. This method can only be used when the animation being built targets the composition layer.
public Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<in T> ExpressionKeyFrame (double progress, string expression, 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 ExpressionKeyFrame : double * string * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.INormalizedKeyFrameAnimationBuilder<'T>
Public Function ExpressionKeyFrame (progress As Double, expression As String, 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).
- expression
- String
The expression 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.
Exceptions
Thrown when the animation being built targets the XAML layer.