user interface - How to do Regions in WPF without Prism? -


Especially in MVVM Light Toolkit? I have not yet dived into the Prism code to see what happens in the WPF UI regarding areas, with the view model loketer in Messaging and MVML Lite, it seems that you can do the same. can do? Can you give some examples on this? Basically I want to click on a button and load two different visual models in the UI. Perhaps a better way to understand is the navigation pane functionality such as Outlook.

It is quite possible in WPF without any framework Can be easily done.

Just setup your application (or at the window / user control level) that maps to the map to display view models for that view model.

Then you can use only one, and its contents can be tied into a single property in your ViewModel (which can be of type object ) when you "field "In a specific view, just set the property to the appropriate ViewModel, and WPF will automatically wire everything for you.


Comments