KeyFrameAnimationInsertExpressionKeyFrame Method
Inserts an expression keyframe.
Namespace: Avalonia.Rendering.Composition.AnimationsAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void InsertExpressionKeyFrame(
float normalizedProgressKey,
string value,
Easing? easingFunction = null
)
Public Sub InsertExpressionKeyFrame (
normalizedProgressKey As Single,
value As String,
Optional easingFunction As Easing = Nothing
)
member InsertExpressionKeyFrame :
normalizedProgressKey : float32 *
value : string *
?easingFunction : Easing
(* Defaults:
let _easingFunction = defaultArg easingFunction null
*)
-> unit
Parameters
- 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.
- value String
- The expression used to calculate the value of the key frame.
- easingFunction Easing (Optional)
- The easing function to use when interpolating between frames.