How do I bind my tree to a hierarchical list?
Let us say you have a hierarchical list like this:
With corresponding types like this:
You could then bind a collection of Divisions to a tree to achieve the above look and feel by defining a HierarchicalDataTemplate for Division and Department and a DataTemplate for Room types, as follows:
You can then bind the TreeView to a collection of Divisions.