Skip to main content

Expression Property

The mathematical equation specifying how the animated value is calculated each frame. The Expression is the core of an ExpressionAnimation and represents the equation the system will use to calculate the value of the animation property each frame. The equation is set on this property in the form of a string. Although expressions can be defined by simple mathematical equations such as "2+2", the real power lies in creating mathematical relationships where the input values can change frame over frame.

Definition

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

public string? Expression { get; set; }

Property Value

String

See Also

Reference

ExpressionAnimation Class
Avalonia.Rendering.Composition.Animations Namespace