Skip to main content

ColumnOptions<TModel> Class

Definition

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

Holds less commonly-used options for an Avalonia.Controls.Models.TreeDataGrid.IColumn<T>.

public class ColumnOptions<TModel>

Inheritance: object -> ColumnOptions<TModel>

Constructors

NameDescription
ColumnOptions<TModel>No summary available.

ColumnOptions<TModel> Constructor

public ColumnOptions<TModel>()

Properties

NameDescription
AllowTriStateSortingGets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header.
BeginEditGesturesGets or sets the gesture(s) that will cause a cell to enter edit mode.
CanUserResizeColumnGets or sets a value indicating whether the user can resize a column by dragging.
CanUserSortColumnGets or sets a value indicating whether the user can sort a column by clicking.
CompareAscendingGets or sets a custom comparison for ascending ordered columns.
CompareDescendingGets or sets a custom comparison for descending ordered columns.
MaxWidthGets or sets the maximum width for a column.
MinWidthGets 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; }