ExpandCollapseRecursive(HierarchicalRow, Func<TModel, Boolean>) Method

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Expands or collapses rows according to a condition, starting from the specified row.

public void ExpandCollapseRecursive(HierarchicalRow<TModel> row, Func<TModel, bool> predicate)

Parameters

row
HierarchicalRow<TModel>

The row from which to start expanding or collapsing.

predicate
Func<TModel, Boolean>

A function which is passed a model instance and returns a boolean value representing the desired expanded state of the row.