CanReuseElement(Control, Object?) Method

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Determines whether an existing element can be reused for the supplied data without returning it to this factory's recycle pool.

public bool CanReuseElement(Control element, object? data)

Parameters

data
Object

Returns

Remarks

This is useful for controls which retain a realized child in the visual tree while changing its model, avoiding a detach and subsequent style reapplication.