Visual.

AffectsRender<T>(AvaloniaProperty[]) Method

Summary

Indicates that a property change should cause InvalidateVisual() to be called.
Namespace
Avalonia
Containing Type
Visual

Syntax

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

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.

Type Parameters

Name Description
T The control which the property affects.

Parameters

Name Type Description
properties AvaloniaProperty[] The properties.

Return Value

Type Description
void