Hello I am working on a Prism application which has the following architecture.
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.
Based on your description, I believe that your approach is valid and seems to be a common design for an application based on Prism.