WPF Prism application navigation using IRegionManager

Topics: Prism v4 - WPF 4
May 21, 2013 at 10:36 PM
Hello I am working on a Prism application which has the following architecture.

Shell.xaml has

TopRegion (Menu)
MainRegion (Content)

The top region has menus that I pass the IRegionManager in the constructor and use the region navigation from that top menu control.

But for navigation from within the content of the Main region what is the optimal approach?

For example, when the application loads the Home page is loaded with content and some buttons to navigate. Or Datagrid with data with double click capability.

For double click I may use a delegate command to navigate to the particualr item that was clicked. In which case I am using the IRegionManager to navigate to the page of choice and pass the parameter to the detail page to show the details.

Is is this approach optimal to pass the IRegionManager throughout the application in the viewmodels?

Any advise on improvements is appreciated.

May 22, 2013 at 5:42 PM

Based on your description, I believe that your approach is valid and seems to be a common design for an application based on Prism.


Federico Martinez