Skip to main content

TreeDataGridTemplateCell Class

Definition

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

A control in a Avalonia.Controls.TreeDataGrid that displays cell content using a data template.

public class TreeDataGridTemplateCell

Inheritance: TemplatedControl -> TreeDataGridCell -> TreeDataGridTemplateCell

Remarks

TreeDataGridTemplateCell provides a flexible way to display and edit cell content using data templates.

This cell type allows for rich content presentation and custom editing experiences beyond simple text or checkbox cells. The content displayed in the cell is determined by the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.ContentTemplate during normal viewing, and the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.EditingTemplate when the cell is in edit mode.

Constructors

NameDescription
TreeDataGridTemplateCellNo summary available.

TreeDataGridTemplateCell Constructor

public TreeDataGridTemplateCell()

Properties

NameDescription
ContentGets the content to display in the cell.
ContentTemplateGets or sets the template used to display the cell's content when not in edit mode.
EditingTemplateGets or sets the template used to display the cell's content when in edit mode.
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.

Content Property

Gets the content to display in the cell.

public object Content { get; set; }

ContentTemplate Property

Gets or sets the template used to display the cell's content when not in edit mode.

public Avalonia.Controls.Templates.IDataTemplate ContentTemplate { get; set; }

EditingTemplate Property

Gets or sets the template used to display the cell's content when in edit mode.

public Avalonia.Controls.Templates.IDataTemplate EditingTemplate { get; set; }

Fields

ContentProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.Content property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTemplateCell, object> ContentProperty

ContentTemplateProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.ContentTemplate property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTemplateCell, Avalonia.Controls.Templates.IDataTemplate> ContentTemplateProperty

EditingTemplateProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.EditingTemplate property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTemplateCell, Avalonia.Controls.Templates.IDataTemplate> EditingTemplateProperty