Skip to main content

TreeDataGridElementFactory Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

Factory class responsible for creating and recycling UI elements used in the Avalonia.Controls.TreeDataGrid control.

public class TreeDataGridElementFactory

Inheritance: object -> TreeDataGridElementFactory

Remarks

The TreeDataGridElementFactory manages the creation of UI elements in the TreeDataGrid, including rows, cells, and column headers. It implements an element recycling strategy that improves performance by reusing existing UI elements rather than creating new ones whenever possible.

This class can be extended to customize the creation and recycling of TreeDataGrid elements by overriding the Avalonia.Controls.Primitives.TreeDataGridElementFactory.CreateElement(object), Avalonia.Controls.Primitives.TreeDataGridElementFactory.GetDataRecycleKey(object), and Avalonia.Controls.Primitives.TreeDataGridElementFactory.GetElementRecycleKey(Avalonia.Controls.Control) methods.

Constructors

NameDescription
TreeDataGridElementFactoryNo summary available.

TreeDataGridElementFactory Constructor

public TreeDataGridElementFactory()