TreeDataGridCellsPresenter Class
Definition
Presents and manages cells within a row of a Avalonia.Controls.TreeDataGrid control.
public class TreeDataGridCellsPresenter
Remarks
TreeDataGridCellsPresenter is responsible for creating, recycling, and arranging cells horizontally within a row of a TreeDataGrid. It handles the virtualization of cells, ensuring that only visible cells are realized in the visual tree to improve performance.
This presenter is typically used within a Avalonia.Controls.Primitives.TreeDataGridRow control template to display the cells for that row. It coordinates with its parent row and the TreeDataGrid to manage cell lifecycle, selection state, and layout.
Constructors
| Name | Description |
|---|---|
| TreeDataGridCellsPresenter | No summary available. |
TreeDataGridCellsPresenter Constructor
public TreeDataGridCellsPresenter()
Methods
| Name | Description |
|---|---|
| GetChildIndex | No summary available. |
| TryGetTotalCount | No summary available. |
GetChildIndex Method
public int GetChildIndex(Avalonia.LogicalTree.ILogical child)
Parameters
child Avalonia.LogicalTree.ILogical
Returns
int
TryGetTotalCount Method
public bool TryGetTotalCount(int& count)
Parameters
count int&
Returns
bool
Properties
| Name | Description |
|---|---|
| FrozenColumnCount | Gets or sets the number of frozen columns. |
| RowIndex | Gets the index of the row that this presenter is currently displaying. |
| Rows | Gets or sets the rows collection from which to obtain cell data. |
FrozenColumnCount Property
Gets or sets the number of frozen columns.
public int FrozenColumnCount { get; set; }
Remarks
Frozen columns do not scroll horizontally and remain visible at all times.
RowIndex Property
Gets the index of the row that this presenter is currently displaying.
public int RowIndex { get; set; }
Value
The zero-based row index, or -1 if the presenter is not realized.
Rows Property
Gets or sets the rows collection from which to obtain cell data.
public Avalonia.Controls.TreeDataGridRows Rows { get; set; }
Value
The collection of rows used to populate cells in this presenter.
Fields
| Name | Description |
|---|---|
| FrozenColumnCountProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridCellsPresenter.FrozenColumnCount property. |
| RowsProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridCellsPresenter.Rows property. |
FrozenColumnCountProperty Field
Defines the Avalonia.Controls.Primitives.TreeDataGridCellsPresenter.FrozenColumnCount property.
public Avalonia.StyledProperty<int> FrozenColumnCountProperty
RowsProperty Field
Defines the Avalonia.Controls.Primitives.TreeDataGridCellsPresenter.Rows property.
public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridCellsPresenter, Avalonia.Controls.TreeDataGridRows> RowsProperty
Events
| Name | Description |
|---|---|
| ChildIndexChanged | Occurs 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