mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Added CanExpandGetter logic (optional)
This commit is contained in:
@@ -54,6 +54,9 @@ namespace UICatalog.Scenarios {
|
||||
return;
|
||||
}
|
||||
|
||||
// As a shortcut to enumerating half the file system, tell tree that all directories are expandable (even if they turn out to be empty later on)
|
||||
_treeView.CanExpandGetter = (o)=>o is DirectoryInfo;
|
||||
|
||||
// Determines how to compute children of any given branch
|
||||
_treeView.ChildrenGetter = GetChildren;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user