TreeDataGridTemplateCell Class
Definition
A control in a Avalonia.Controls.TreeDataGrid that displays cell content using a data template.
public class 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
| Name | Description |
|---|---|
| TreeDataGridTemplateCell | No summary available. |
TreeDataGridTemplateCell Constructor
public TreeDataGridTemplateCell()
Properties
| Name | Description |
|---|---|
| Content | Gets the content to display in the cell. |
| ContentTemplate | Gets or sets the template used to display the cell's content when not in edit mode. |
| EditingTemplate | Gets or sets the template used to display the cell's content when in edit mode. |
| ColumnIndex | Gets the index of the column that this cell belongs to. Inherited from TreeDataGridCell. |
| IsEditing | Gets a value indicating whether the cell is in edit mode. Inherited from TreeDataGridCell. |
| IsEffectivelySelected | Gets a value indicating whether the cell is effectively selected, either directly or because its containing row is selected. Inherited from TreeDataGridCell. |
| IsSelected | Gets a value indicating whether the cell is selected. Inherited from TreeDataGridCell. |
| Model | Gets the data model for the cell. Inherited from TreeDataGridCell. |
| RowIndex | Gets 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
| Name | Description |
|---|---|
| ContentProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.Content property. |
| ContentTemplateProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.ContentTemplate property. |
| EditingTemplateProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridTemplateCell.EditingTemplate property. |
| IsSelectedProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridCell.IsSelected property. Inherited from TreeDataGridCell. |
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