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)
- WPF Tree List - Bind to Self-Referential Data Structure
- WPF Tree List - Use the Child Nodes Selector to Create a Hierarchical Data Structure
- WPF Tree List - Use the Hierarchical Data Template to Build a Tree
(you will be redirected to DevExpress.com to submit your response)