ColumnBase(Object?, Func<TModel, TValue?>, TypedBinding<TModel, TValue?>, Nullable, ColumnOptions?) Constructor

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Initializes a new instance of the ColumnBase<TModel, TValue> class.

public ColumnBase(object? header, Func<TModel, TValue?> valueSelector, TypedBinding<TModel, TValue?> binding, GridLength? width, ColumnOptions<TModel>? options)

Parameters

header
Object

The column header.

valueSelector
Func<TModel, TValue>

the function which selects the column value from the model..

binding
TypedBinding<TIn, TOut>

a binding which selects the column value from the model.

width
Nullable<GridLength>

The column width. If null defaults to Avalonia.Controls.GridLength.Auto.

options
ColumnOptions<TModel>

Additional column options.