TreeDataGridHierarchicalExpanderColumn Class
Definition
A column in an Avalonia.Controls.HierarchicalTreeDataGridSource<T> whose cells show an expander to reveal nested data.
public class TreeDataGridHierarchicalExpanderColumn
Constructors
| Name | Description |
|---|---|
| TreeDataGridHierarchicalExpanderColumn | Initializes a new instance of the Avalonia.Controls.TreeDataGridHierarchicalExpanderColumn class for use in XAML. |
TreeDataGridHierarchicalExpanderColumn Constructor
Initializes a new instance of the Avalonia.Controls.TreeDataGridHierarchicalExpanderColumn class for use in XAML.
public TreeDataGridHierarchicalExpanderColumn()
Methods
| Name | Description |
|---|---|
| GetChildModels | Gets the child models for the specified model. |
| GetModelIsExpanded | No summary available. |
| HasChildren | Determines whether the specified model has children. |
GetChildModels Method
Gets the child models for the specified model.
public System.Collections.IEnumerable GetChildModels(object model)
Parameters
model object
The parent model.
Returns
System.Collections.IEnumerable
The child models, or null if there are no children.
GetModelIsExpanded Method
public bool GetModelIsExpanded(object model)
Parameters
model object
Returns
bool
HasChildren Method
Determines whether the specified model has children.
public bool HasChildren(object model)
Parameters
model object
The model.
Returns
bool
True if the model has children; otherwise false.
Properties
| Name | Description |
|---|---|
| ChildrenBinding | Gets or sets the binding used to select the children collection from a model. |
| HasChildrenBinding | Gets or sets the binding used to determine whether a model has children. |
| Inner | Gets or sets the inner column that provides cell creation for this expander column. |
| IsExpandedBinding | Gets or sets the binding used to read the expanded state from a model. |
| 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. |
ChildrenBinding Property
Gets or sets the binding used to select the children collection from a model.
public Avalonia.Data.BindingBase ChildrenBinding { get; set; }
Remarks
When set in XAML, this binding is used both to create the Avalonia.Controls.Models.TreeDataGrid.ExpanderCell and to derive the children selector via a Avalonia.Controls.Utils.BindingEvaluator.
HasChildrenBinding Property
Gets or sets the binding used to determine whether a model has children.
public Avalonia.Data.BindingBase HasChildrenBinding { get; set; }
Inner Property
Gets or sets the inner column that provides cell creation for this expander column.
public Avalonia.Controls.TreeDataGridColumn Inner { get; set; }
IsExpandedBinding Property
Gets or sets the binding used to read the expanded state from a model.
public Avalonia.Data.BindingBase IsExpandedBinding { get; set; }