ColumnBase<TModel, TValue> Class
Definition
Base class for columns which select cell values from a model.
public class ColumnBase<TModel, TValue>
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| GetComparison | No summary available. |
GetComparison Method
public Comparison<TModel> GetComparison(System.ComponentModel.ListSortDirection direction)
Parameters
direction System.ComponentModel.ListSortDirection
Returns
Comparison<TModel>
Properties
| Name | Description |
|---|---|
| Binding | Gets a binding which selects the column value from the model. |
| ValueSelector | Gets 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; }