I'm sure there is a simple answer to this but I can't seem to find it. Most examples for binding TreeView nodes are about using a ListView to show the node's details. In the scenario I am working on I've got a TreeView data bound to an Xml document using a simple MVVM pattern. As each node is selected in the TreeView I want to show a different UserControl for the type of XmlNode being represented.
- What is the best control for hosting the different View's? (ViewBox, Panel?)
- What's the best way to bind the view to the Selection in the treeview?
Thanks