AffectsRender<T> Method
Indicates that a property change should cause InvalidateVisual() to be called.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
protected static void AffectsRender<T>(
params AvaloniaProperty[] properties
)
where T : Visual
Protected Shared Sub AffectsRender(Of T As Visual) (
ParamArray properties As AvaloniaProperty()
)
static member AffectsRender :
properties : AvaloniaProperty[] -> unit when '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.