Skip to main content

InsertExpressionKeyFrame Method

Inserts an expression keyframe.

Definition​

Namespace: Avalonia.Rendering.Composition.Animations
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void InsertExpressionKeyFrame(
float normalizedProgressKey,
string value,
Easing? easingFunction = null
)

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