Skip to main content

AffectsRender<T> Method

Indicates that a property change should cause InvalidateVisual() to be called.

Definition

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

protected static void AffectsRender<T>(
params AvaloniaProperty[] properties
)
where T : Visual

Parameters

  AvaloniaProperty[]
The properties.

Type Parameters

The control which the property affects.

Remarks

This method should be called in a control's static constructor with each property on the control which when changed should cause a redraw. This is similar to WPF's FrameworkPropertyMetadata.AffectsRender flag.

See Also

Reference

Visual Class
Avalonia Namespace