Skip to main content

AffectsMeasure<T> Method

Marks a property as affecting the control's measurement.

Definition​

Namespace: Avalonia.Layout
Assembly: Avalonia.Base (in Avalonia.Base.dll)

protected static void AffectsMeasure<T>(
params AvaloniaProperty[] properties
)
where T : Layoutable

Parameters​

  AvaloniaProperty[]
The properties.

Type Parameters​

The control which the property affects.

Remarks​

After a call to this method in a control's static constructor, any change to the property will cause InvalidateMeasure() to be called on the element.

See Also​

Reference​

Layoutable Class
Avalonia.Layout Namespace