InsertExpressionKeyFrame Method
Inserts an expression keyframe.
Definition
Namespace: Avalonia.Rendering.Composition.Animations
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
- 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.
- String
- The expression used to calculate the value of the key frame.
- Easing (Optional)
- The easing function to use when interpolating between frames.
See Also
Reference
KeyFrameAnimation Class
Avalonia.Rendering.Composition.Animations Namespace