FlatTreeDataGridSource<TModel> Class
Definition
A data source for a Avalonia.Controls.TreeDataGrid which displays a flat grid.
public class FlatTreeDataGridSource<TModel>
Constructors
| Name | Description |
|---|---|
| FlatTreeDataGridSource<TModel> | No summary available. |
FlatTreeDataGridSource<TModel> Constructor
public FlatTreeDataGridSource<TModel>(System.Collections.Generic.IEnumerable<TModel> items)
Parameters
items System.Collections.Generic.IEnumerable<TModel>
Methods
| Name | Description |
|---|---|
| ClearSort | No summary available. |
| Dispose | No summary available. |
| Filter | No summary available. |
| RefreshFilter | Refreshes the current filter applied to the collection. |
| SortBy | No summary available. |
ClearSort Method
public void ClearSort(Avalonia.Controls.TreeDataGridColumn column)
Parameters
Dispose Method
public void Dispose()
Filter Method
public void Filter(Func<TModel, bool> filter)
Parameters
filter Func<TModel, bool>
RefreshFilter Method
Refreshes the current filter applied to the collection.
public void RefreshFilter()
Remarks
Call this method if the filter predicate depends on external state which has changed, to re-apply the filter to the collection.
SortBy Method
public bool SortBy(Avalonia.Controls.TreeDataGridColumn column, System.ComponentModel.ListSortDirection direction)
Parameters
column Avalonia.Controls.TreeDataGridColumn
direction System.ComponentModel.ListSortDirection
Returns
bool
Properties
| Name | Description |
|---|---|
| Columns | Gets the columns to be displayed. |
| IsFiltered | No summary available. |
| IsHierarchical | No summary available. |
| IsSorted | No summary available. |
| Items | No summary available. |
| Rows | No summary available. |
| Selection | No summary available. |
Columns Property
Gets the columns to be displayed.
public Avalonia.Controls.TreeDataGridColumns Columns { get; set; }
IsFiltered Property
public bool IsFiltered { get; set; }
IsHierarchical Property
public bool IsHierarchical { get; set; }
IsSorted Property
public bool IsSorted { get; set; }
Items Property
public System.Collections.Generic.IEnumerable<TModel> Items { get; set; }
Rows Property
public Avalonia.Controls.TreeDataGridRows Rows { get; set; }
Selection Property
public Avalonia.Controls.Selection.TreeDataGridSelectionModel Selection { get; set; }