Region navigate to NonShared view/viewmodel

Topics: Prism v4 - WPF 4
Aug 23 at 9:52 AM
Hi,
I'm trying to create multiple tabs in a tabcontrol. Each tabItem will be View.xaml with a ViewModel. I have set the PartCreationPolicy for both the view and the viewmodel to be NonShared. My viewmodel implements INavigationAware. I have a TabControlRegionAdapter defined as well.

However when I do a regionManager.RequestNavigate to the view it seems to create only 1 instance of the view and viewmodel. I'm not sure how I should get the view and viewmodel to create a new instance for every tab item I create. Any help here will be much appreciated.

I'm using Prism 4.1.0.0 with MEF.

Thanks.

Ganesh
Aug 23 at 10:01 AM
Never mind...resolved this by setting IsNavigationTarget to return false.

Thanks.

Ganesh