Skip to main content

TreeDataGridColumn Class

Definition

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

Base class for columns in a Avalonia.Controls.TreeDataGrid.

public class TreeDataGridColumn

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
ActualWidthGets the actual width of the column after measurement.
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.
CanUserResizeGets or sets a value indicating whether the user can resize the column by dragging.
CanUserSortGets or sets a value indicating whether the user can sort the column by clicking.
CellRendererGets the cell renderer for this column, or null if the column uses control-based cells.
CompareAscendingGets or sets a custom comparison for ascending sort order.
CompareDescendingGets or sets a custom comparison for descending sort order.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
HeaderGets or sets the column header.
HorizontalContentAlignmentGets or sets the horizontal alignment of the content within a cell in the column.
IsVisibleGets or sets a value indicating whether the column is visible.
ItemInherited from AvaloniaObject.
MaxWidthGets or sets the maximum width for the column.
MinWidthGets or sets the minimum width for the column.
SortDirectionGets or sets the sort direction indicator that will be displayed on the column.
TagGets or sets a user-defined object attached to the column.
VerticalContentAlignmentGets or sets the vertical alignment of the content within a cell in the column.
WidthGets or sets the width of the column.

ActualWidth Property

Gets the actual width of the column after measurement.

public double ActualWidth { get; set; }

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.TreeDataGridColumn.CanUserSort 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.BeginEditGestures BeginEditGestures { get; set; }

CanUserResize Property

Gets or sets a value indicating whether the user can resize the column by dragging.

public Nullable<bool> CanUserResize { get; set; }

Remarks

If null, the owner Avalonia.Controls.TreeDataGrid.CanUserResizeColumns property value will apply.

CanUserSort Property

Gets or sets a value indicating whether the user can sort the column by clicking.

public Nullable<bool> CanUserSort { get; set; }

Remarks

If null, the owner Avalonia.Controls.TreeDataGrid.CanUserSortColumns property value will apply.

CellRenderer Property

Gets the cell renderer for this column, or null if the column uses control-based cells.

public Avalonia.Controls.CellRenderer CellRenderer { get; set; }

Remarks

When a Avalonia.Controls.TreeDataGridColumn.CellRenderer is set, the column's cells are drawn directly by the Avalonia.Controls.Primitives.TreeDataGridCellsPresenter rather than by per-cell controls.

CompareAscending Property

Gets or sets a custom comparison for ascending sort order.

public Comparison<object> CompareAscending { get; set; }

CompareDescending Property

Gets or sets a custom comparison for descending sort order.

public Comparison<object> CompareDescending { get; set; }

Header Property

Gets or sets the column header.

public object Header { get; set; }

HorizontalContentAlignment Property

Gets or sets the horizontal alignment of the content within a cell in the column.

public Avalonia.Layout.HorizontalAlignment HorizontalContentAlignment { get; set; }

IsVisible Property

Gets or sets a value indicating whether the column is visible.

public bool IsVisible { get; set; }

Remarks

When set to false, the column header and cells will not be rendered and the column will not contribute to layout calculations.

MaxWidth Property

Gets or sets the maximum width for the column.

public Nullable<Avalonia.Controls.GridLength> MaxWidth { get; set; }

MinWidth Property

Gets or sets the minimum width for the column.

public Avalonia.Controls.GridLength MinWidth { get; set; }

SortDirection Property

Gets or sets the sort direction indicator that will be displayed on the column.

public Nullable<System.ComponentModel.ListSortDirection> SortDirection { get; set; }

Remarks

Note that changing this property does not change the sorting of the data, it is only used to display a sort direction indicator. To sort data according to a column use Avalonia.Controls.TreeDataGridSource.SortBy(Avalonia.Controls.TreeDataGridColumn,System.ComponentModel.ListSortDirection).

Tag Property

Gets or sets a user-defined object attached to the column.

public object Tag { get; set; }

VerticalContentAlignment Property

Gets or sets the vertical alignment of the content within a cell in the column.

public Avalonia.Layout.VerticalAlignment VerticalContentAlignment { get; set; }

Width Property

Gets or sets the width of the column.

public Avalonia.Controls.GridLength Width { get; set; }

Fields

NameDescription
ActualWidthPropertyDefines the Avalonia.Controls.TreeDataGridColumn.ActualWidth property.
AllowTriStateSortingPropertyDefines the Avalonia.Controls.TreeDataGridColumn.AllowTriStateSorting property.
BeginEditGesturesPropertyDefines the Avalonia.Controls.TreeDataGridColumn.BeginEditGestures property.
CanUserResizePropertyDefines the Avalonia.Controls.TreeDataGridColumn.CanUserResize property.
CanUserSortPropertyDefines the Avalonia.Controls.TreeDataGridColumn.CanUserSort property.
CompareAscendingPropertyDefines the Avalonia.Controls.TreeDataGridColumn.CompareAscending property.
CompareDescendingPropertyDefines the Avalonia.Controls.TreeDataGridColumn.CompareDescending property.
HeaderPropertyDefines the Avalonia.Controls.TreeDataGridColumn.Header property.
HorizontalContentAlignmentPropertyDefines the Avalonia.Controls.TreeDataGridColumn.HorizontalContentAlignment property.
IsVisiblePropertyDefines the Avalonia.Controls.TreeDataGridColumn.IsVisible property.
MaxWidthPropertyDefines the Avalonia.Controls.TreeDataGridColumn.MaxWidth property.
MinWidthPropertyDefines the Avalonia.Controls.TreeDataGridColumn.MinWidth property.
SortDirectionPropertyDefines the Avalonia.Controls.TreeDataGridColumn.SortDirection property.
TagPropertyDefines the Avalonia.Controls.TreeDataGridColumn.Tag property.
VerticalContentAlignmentPropertyDefines the Avalonia.Controls.TreeDataGridColumn.VerticalContentAlignment property.
WidthPropertyDefines the Avalonia.Controls.TreeDataGridColumn.Width property.

ActualWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.ActualWidth property.

public Avalonia.DirectProperty<Avalonia.Controls.TreeDataGridColumn, double> ActualWidthProperty

AllowTriStateSortingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.AllowTriStateSorting property.

public Avalonia.StyledProperty<Nullable<bool>> AllowTriStateSortingProperty

BeginEditGesturesProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.BeginEditGestures property.

public Avalonia.StyledProperty<Avalonia.Controls.BeginEditGestures> BeginEditGesturesProperty

CanUserResizeProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CanUserResize property.

public Avalonia.StyledProperty<Nullable<bool>> CanUserResizeProperty

CanUserSortProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CanUserSort property.

public Avalonia.StyledProperty<Nullable<bool>> CanUserSortProperty

CompareAscendingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CompareAscending property.

public Avalonia.StyledProperty<Comparison<object>> CompareAscendingProperty

CompareDescendingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CompareDescending property.

public Avalonia.StyledProperty<Comparison<object>> CompareDescendingProperty

HeaderProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Header property.

public Avalonia.StyledProperty<object> HeaderProperty

HorizontalContentAlignmentProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.HorizontalContentAlignment property.

public Avalonia.StyledProperty<Avalonia.Layout.HorizontalAlignment> HorizontalContentAlignmentProperty

IsVisibleProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.IsVisible property.

public Avalonia.StyledProperty<bool> IsVisibleProperty

MaxWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.MaxWidth property.

public Avalonia.StyledProperty<Nullable<Avalonia.Controls.GridLength>> MaxWidthProperty

MinWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.MinWidth property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> MinWidthProperty

SortDirectionProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.SortDirection property.

public Avalonia.StyledProperty<Nullable<System.ComponentModel.ListSortDirection>> SortDirectionProperty

TagProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Tag property.

public Avalonia.StyledProperty<object> TagProperty

VerticalContentAlignmentProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.VerticalContentAlignment property.

public Avalonia.StyledProperty<Avalonia.Layout.VerticalAlignment> VerticalContentAlignmentProperty

WidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Width property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> WidthProperty

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.