TreeDataGridTemplateColumn Class
Definition
A column in an Avalonia.Controls.TreeDataGridSource which displays its values using a data template.
public class TreeDataGridTemplateColumn
Constructors
| Name | Description |
|---|---|
| TreeDataGridTemplateColumn (3 overloads) | Initializes a new instance of the Avalonia.Controls.TreeDataGridTemplateColumn class with default values for XAML instantiation. |
TreeDataGridTemplateColumn overloads
TreeDataGridTemplateColumn Constructor
Initializes a new instance of the Avalonia.Controls.TreeDataGridTemplateColumn class with default values for XAML instantiation.
public TreeDataGridTemplateColumn()
TreeDataGridTemplateColumn Constructor
public TreeDataGridTemplateColumn(object header, Avalonia.Controls.Templates.IDataTemplate cellTemplate, Avalonia.Controls.Templates.IDataTemplate cellEditingTemplate, Nullable<Avalonia.Controls.GridLength> width)
Parameters
header object
cellTemplate Avalonia.Controls.Templates.IDataTemplate
cellEditingTemplate Avalonia.Controls.Templates.IDataTemplate
width Nullable<Avalonia.Controls.GridLength>
TreeDataGridTemplateColumn Constructor
public TreeDataGridTemplateColumn(object header, object cellTemplateResourceKey, object cellEditingTemplateResourceKey, Nullable<Avalonia.Controls.GridLength> width)
Parameters
header object
cellTemplateResourceKey object
cellEditingTemplateResourceKey object
width Nullable<Avalonia.Controls.GridLength>
Properties
| Name | Description |
|---|---|
| CellEditingTemplate | Gets or sets the data template used to display cell content in editing mode. |
| CellTemplate | Gets or sets the data template used to display cell content. |
| ActualWidth | Gets the actual width of the column after measurement. Inherited from TreeDataGridColumn. |
| AllowTriStateSorting | Gets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header. Inherited from TreeDataGridColumn. |
| BeginEditGestures | Gets or sets the gesture(s) that will cause a cell to enter edit mode. Inherited from TreeDataGridColumn. |
| CanUserResize | Gets or sets a value indicating whether the user can resize the column by dragging. Inherited from TreeDataGridColumn. |
| CanUserSortColumn | Gets or sets a value indicating whether the user can sort the column by clicking. Inherited from TreeDataGridColumn. |
| CompareAscending | Gets or sets a custom comparison for ascending sort order. Inherited from TreeDataGridColumn. |
| CompareDescending | Gets or sets a custom comparison for descending sort order. Inherited from TreeDataGridColumn. |
| Header | Gets or sets the column header. Inherited from TreeDataGridColumn. |
| IsVisible | Gets or sets a value indicating whether the column is visible. Inherited from TreeDataGridColumn. |
| MaxWidth | Gets or sets the maximum width for the column. Inherited from TreeDataGridColumn. |
| MinWidth | Gets or sets the minimum width for the column. Inherited from TreeDataGridColumn. |
| SortDirection | Gets or sets the sort direction indicator that will be displayed on the column. Inherited from TreeDataGridColumn. |
| Tag | Gets or sets a user-defined object attached to the column. Inherited from TreeDataGridColumn. |
| Width | Gets or sets the width of the column. Inherited from TreeDataGridColumn. |
CellEditingTemplate Property
Gets or sets the data template used to display cell content in editing mode.
public Avalonia.Controls.Templates.IDataTemplate CellEditingTemplate { get; set; }
CellTemplate Property
Gets or sets the data template used to display cell content.
public Avalonia.Controls.Templates.IDataTemplate CellTemplate { get; set; }
Fields
CellEditingTemplateProperty Field
Defines the Avalonia.Controls.TreeDataGridTemplateColumn.CellEditingTemplate property.
public Avalonia.StyledProperty<Avalonia.Controls.Templates.IDataTemplate> CellEditingTemplateProperty
CellTemplateProperty Field
Defines the Avalonia.Controls.TreeDataGridTemplateColumn.CellTemplate property.
public Avalonia.StyledProperty<Avalonia.Controls.Templates.IDataTemplate> CellTemplateProperty