Showing different views on a single main window

Topics: Questions
Sep 7, 2014 at 1:48 AM
I have a .NET WPF application that has (currently) 2 very different views the customer will need to work with. I have a menu with 2 menu items (we don't want to use tabs) which will let the customer select which view to display.

I would like the main window ViewModel to handle the menu commands by showing the selected view on the main window -- no modal dialogs, popups, etc.

Is there an example of how to do this?

Sep 7, 2014 at 11:13 AM
For commands in menus / ribbons / etc, I recommend this:

To use a specific view based on a setting, use a DataTemplateSelector with a bindable parameter.