Skip to main content

TreeDataGridExpanderCell Class

Definition

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

A control in a Avalonia.Controls.TreeDataGrid that displays a cell with an expander.

public class TreeDataGridExpanderCell

Inheritance: TemplatedControl -> TreeDataGridCell -> TreeDataGridExpanderCell

Remarks

TreeDataGridExpanderCell is used for displaying hierarchical data in a TreeDataGrid. It shows an expander button that allows users to expand or collapse child rows, and embeds another cell (the content cell) that displays the actual data value.

Constructors

NameDescription
TreeDataGridExpanderCellNo summary available.

TreeDataGridExpanderCell Constructor

public TreeDataGridExpanderCell()

Properties

NameDescription
IndentGets the indentation level of the row that this cell belongs to.
IsExpandedGets or sets a value indicating whether the row is expanded to show child rows.
ShowExpanderGets a value indicating whether the expander button should be visible.
ColumnIndexGets the index of the column that this cell belongs to. Inherited from TreeDataGridCell.
IsEditingGets a value indicating whether the cell is in edit mode. Inherited from TreeDataGridCell.
IsEffectivelySelectedGets a value indicating whether the cell is effectively selected, either directly or because its containing row is selected. Inherited from TreeDataGridCell.
IsSelectedGets a value indicating whether the cell is selected. Inherited from TreeDataGridCell.
ModelGets the data model for the cell. Inherited from TreeDataGridCell.
RowIndexGets the index of the row that this cell belongs to. Inherited from TreeDataGridCell.

Indent Property

Gets the indentation level of the row that this cell belongs to.

public int Indent { get; set; }

IsExpanded Property

Gets or sets a value indicating whether the row is expanded to show child rows.

public bool IsExpanded { get; set; }

ShowExpander Property

Gets a value indicating whether the expander button should be visible.

public bool ShowExpander { get; set; }

Fields

IndentProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridExpanderCell.Indent property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridExpanderCell, int> IndentProperty

IsExpandedProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridExpanderCell.IsExpanded property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridExpanderCell, bool> IsExpandedProperty

ShowExpanderProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridExpanderCell.ShowExpander property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridExpanderCell, bool> ShowExpanderProperty