Skip to main content

ColumnBase<TModel, TValue> Class

Definition

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

Base class for columns which select cell values from a model.

public class ColumnBase<TModel, TValue>

Inheritance: ColumnBase<> -> ColumnBase<TModel, TValue>

Constructors

NameDescription
ColumnBase<TModel, TValue> (2 overloads)No summary available.

ColumnBase<TModel, TValue> overloads

ColumnBase<TModel, TValue> Constructor

public ColumnBase<TModel, TValue>(object header, Func<TModel, TValue> valueSelector, Avalonia.Experimental.Data.TypedBinding<TIn,TOut><TModel, TValue> binding, Nullable<Avalonia.Controls.GridLength> width, Avalonia.Controls.Models.TreeDataGrid.ColumnOptions<TModel><TModel> options)
Parameters

header object

valueSelector Func<TModel, TValue>

binding Avalonia.Experimental.Data.TypedBinding<TIn,TOut><TModel, TValue>

width Nullable<Avalonia.Controls.GridLength>

options Avalonia.Controls.Models.TreeDataGrid.ColumnOptions<TModel><TModel>

ColumnBase<TModel, TValue> Constructor

public ColumnBase<TModel, TValue>(object header, System.Linq.Expressions.Expression<Func<TModel,TValue>> getter, Action<TModel, TValue> setter, Nullable<Avalonia.Controls.GridLength> width, Avalonia.Controls.Models.TreeDataGrid.ColumnOptions<TModel><TModel> options)
Parameters

header object

getter System.Linq.Expressions.Expression<Func<TModel,TValue>>

setter Action<TModel, TValue>

width Nullable<Avalonia.Controls.GridLength>

options Avalonia.Controls.Models.TreeDataGrid.ColumnOptions<TModel><TModel>

Methods

NameDescription
GetComparisonNo summary available.

GetComparison Method

public Comparison<TModel> GetComparison(System.ComponentModel.ListSortDirection direction)

Parameters

direction System.ComponentModel.ListSortDirection

Returns

Comparison<TModel>

Properties

NameDescription
BindingGets a binding which selects the column value from the model.
ValueSelectorGets the function which selects the column value from the model.

Binding Property

Gets a binding which selects the column value from the model.

public Avalonia.Experimental.Data.TypedBinding<TIn,TOut><TModel, TValue> Binding { get; set; }

ValueSelector Property

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

public Func<TModel, TValue> ValueSelector { get; set; }