views:

13

answers:

0

I need some guidance on the plumbing of an MVVM patterned app.

Here's the setup. The page is vertically divided in two. The LHS has a treeview, and the RHS will display the details on whatever item is selected from the tree.

The treeview items bind to a few different types of View Models (Customers, Vendors, Employees for example) Selecting a particular item, should display a specific view on the RHS, based on the type of node selected.

I'm guessing I would have three different UserControls defined on the page ready for display on the RHS. How would I set the visibility to the appropriate view and how would I get it to bind to the Selected VM from the TreeView?