selector region adpater and view based navigation

Topics: Prism v4 - Silverlight 4
Feb 8, 2011 at 10:13 AM



my ui consist of an accordion (i have created an accordion region adapter)

A toolbar (items control) and a main content regions

When user selects an accordion item, both the toolbar and the main content should be changed

I am also using MVVM pattern with MEF

My questions are

1. What is the best way to notify a view get activated in a selector type adapter?

2. Since i need to update both the toolbar and the main content  region is model first navigation appropriate in such case?

Thanks in advance


Feb 9, 2011 at 7:02 PM


You can read the article Creating a Region Adapter for the Accordion control (from Damian Schenkelman´s blog) where you could check how to notify when a the selected item change and then activate the view.

Regarding your second question, as Prism documentation shows “…View model–first navigation is useful when the view is defined as a data template, or when you want your navigation scheme to be defined independently of the views.

You can read more about Navigation in Chapter 8: Navigation.

I hope you find this information useful.


Miguel Bronzovic


Feb 9, 2011 at 7:26 PM


Thanks, for the second issue i think i need something like a controller which will be responsible for injecting the views

I also think that the controller should be INavigationAware

And all navigation will be done with a controller as a navigation target

I am thinking to model my application as such that each task\transaction(user interaction in order to accomplish a task) will have its own controller

Just a thought.