ITimedKeyFrameAnimationBuilder<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 timed expressionkeyframe 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.ITimedKeyFrameAnimationBuilder<in T> ExpressionKeyFrame (TimeSpan 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 : TimeSpan * string * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.ITimedKeyFrameAnimationBuilder<'T>
Public Function ExpressionKeyFrame (progress As TimeSpan, 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 ITimedKeyFrameAnimationBuilder(Of In T)
Parameters
- progress
- TimeSpan
The timed progress for the keyframe, relative to the start of the animation.
- 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.