CompositionExtensions.InsertExpressionKeyFrame 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.
Inserts a KeyFrame whose value is calculated using the specified ExpressionNode.
public static void InsertExpressionKeyFrame(this Microsoft.UI.Composition.KeyFrameAnimation keyframeAnimation, float normalizedProgressKey, CommunityToolkit.WinUI.Animations.Expressions.ExpressionNode expressionNode, Microsoft.UI.Composition.CompositionEasingFunction? easing = default);
static member InsertExpressionKeyFrame : Microsoft.UI.Composition.KeyFrameAnimation * single * CommunityToolkit.WinUI.Animations.Expressions.ExpressionNode * Microsoft.UI.Composition.CompositionEasingFunction -> unit
<Extension()>
Public Sub InsertExpressionKeyFrame (keyframeAnimation As KeyFrameAnimation, normalizedProgressKey As Single, expressionNode As ExpressionNode, Optional easing As CompositionEasingFunction = Nothing)
Parameters
- keyframeAnimation
- Microsoft.UI.Composition.KeyFrameAnimation
The keyframe animation.
- normalizedProgressKey
- Single
The time the key frame should occur at, expressed as a percentage of the animation Duration. Allowed value is from 0.0 to 1.0.
- expressionNode
- ExpressionNode
The root ExpressionNode that represents the ExpressionAnimation.
- easing
- Microsoft.UI.Composition.CompositionEasingFunction
The easing function to use when interpolating between frames.