This example uses the Child Nodes Path to bind the TreeListView to a collection whose objects have the same field that contains child items.
- Set the TreeListView.ChildNodesPath property to the children field name (Tasks in this example).
- Set the TreeListView.TreeDerivationMode property to
ChildNodesSelector
.
- MainWindow.xaml (VB: MainWindow.xaml)
- ViewModel.cs (VB: ViewModel.vb)