Displaying UserControls based on the type a TreeView selection is bound to
- by Ray Wenderlich
I am making an app in WPF in a style similar to Windows Explorer, with a TreeView on the left and a pane on the right.
I want the contents of the right pane to change depending on the type of the selected element in the TreeView.
For example, say the top level in the Tree View contains objects of class "A", and if you expand the "A" object…