ColumnOptions<TModel> Class
Definition
Holds less commonly-used options for an Avalonia.Controls.Models.TreeDataGrid.IColumn<T>.
public class ColumnOptions<TModel>
Constructors
| Name | Description |
|---|---|
| ColumnOptions<TModel> | No summary available. |
ColumnOptions<TModel> Constructor
public ColumnOptions<TModel>()
Properties
| Name | Description |
|---|---|
| AllowTriStateSorting | Gets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header. |
| BeginEditGestures | Gets or sets the gesture(s) that will cause a cell to enter edit mode. |
| CanUserResizeColumn | Gets or sets a value indicating whether the user can resize a column by dragging. |
| CanUserSortColumn | Gets or sets a value indicating whether the user can sort a column by clicking. |
| CompareAscending | Gets or sets a custom comparison for ascending ordered columns. |
| CompareDescending | Gets or sets a custom comparison for descending ordered columns. |
| MaxWidth | Gets or sets the maximum width for a column. |
| MinWidth | Gets or sets the minimum width for a column. |
AllowTriStateSorting Property
Gets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header.
public Nullable<bool> AllowTriStateSorting { get; set; }
Remarks
Only applies if Avalonia.Controls.Models.TreeDataGrid.ColumnOptions<T>.CanUserSortColumn is true. If null, the owner Avalonia.Controls.TreeDataGrid.AllowTriStateSorting property value will apply.
BeginEditGestures Property
Gets or sets the gesture(s) that will cause a cell to enter edit mode.
public Avalonia.Controls.Models.TreeDataGrid.BeginEditGestures BeginEditGestures { get; set; }
CanUserResizeColumn Property
Gets or sets a value indicating whether the user can resize a column by dragging.
public Nullable<bool> CanUserResizeColumn { get; set; }
Remarks
If null, the owner Avalonia.Controls.TreeDataGrid.CanUserResizeColumns property value will apply.
CanUserSortColumn Property
Gets or sets a value indicating whether the user can sort a column by clicking.
public Nullable<bool> CanUserSortColumn { get; set; }
Remarks
If null, the owner Avalonia.Controls.TreeDataGrid.CanUserSortColumns property value will apply.
CompareAscending Property
Gets or sets a custom comparison for ascending ordered columns.
public Comparison<TModel> CompareAscending { get; set; }
CompareDescending Property
Gets or sets a custom comparison for descending ordered columns.
public Comparison<TModel> CompareDescending { get; set; }
MaxWidth Property
Gets or sets the maximum width for a column.
public Nullable<Avalonia.Controls.GridLength> MaxWidth { get; set; }
MinWidth Property
Gets or sets the minimum width for a column.
public Avalonia.Controls.GridLength MinWidth { get; set; }