Visual.

AffectsRender(AvaloniaProperty[]) Method

Summary

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

Syntax

[Obsolete("Use AffectsRender<T> and specify the control type.")]
protected static void AffectsRender(params AvaloniaProperty[] properties)

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.

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
properties AvaloniaProperty[] The properties.

Return Value

Type Description
void