Skip to main content

TreeDataGridRowsPresenter Class

Definition​

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

Presents and manages rows in a Avalonia.Controls.TreeDataGrid control.

public class TreeDataGridRowsPresenter

Inheritance: TreeDataGridPresenterBase<ITreeDataGridRowModel> -> TreeDataGridRowsPresenter

Remarks​

TreeDataGridRowsPresenter is responsible for creating, recycling, and arranging rows vertically in a TreeDataGrid. It handles the virtualization of rows, ensuring that only visible rows are realized in the visual tree to improve performance.

This presenter is typically used within a Avalonia.Controls.TreeDataGrid control template to display the rows for that control.

Constructors​

NameDescription
TreeDataGridRowsPresenterNo summary available.

TreeDataGridRowsPresenter Constructor​

public TreeDataGridRowsPresenter()

Properties​

NameDescription
ColumnsGets or sets the columns collection used to define the structure of rows.

Columns Property​

Gets or sets the columns collection used to define the structure of rows.

public Avalonia.Controls.TreeDataGridColumns Columns { get; set; }

Fields​

ColumnsProperty Field​

Defines the Avalonia.Controls.Primitives.TreeDataGridRowsPresenter.Columns property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridRowsPresenter, Avalonia.Controls.TreeDataGridColumns> ColumnsProperty

Events​

NameDescription
ChildIndexChangedOccurs when the index of a child element in the presenter changes.

ChildIndexChanged Event​

Occurs when the index of a child element in the presenter changes.

public event EventHandler<Avalonia.LogicalTree.ChildIndexChangedEventArgs> ChildIndexChanged

Remarks​

This event is raised when rows are realized, unrealized, or when their indices change due to insertions or removals.