INavigationAware and IsNavigationTarget in Prism 4.2

Topics: Prism v4 - WPF 4
Jan 17, 2014 at 5:22 PM
Has IsNavigationTarget been removed from INavigationAware in Prism 4.2?? I want the update to the new object parameter passing.
Jan 20, 2014 at 5:09 PM
Hi james,

You can find the IsNavigtionTarget() method in the Microsoft.Practices.Prism.Regions namespace. I think you got confused with the __Prism.Core'__s INavigationAware interface.

In order to pass object parameters through navigation, the Microsoft.Practices.Prism.Regions.NavigationWithParametersExtension.cs class provides an extension of the requestNavigate method where these object parameters are grouped as NavigationParameters. Therefore, you would need to call NavigationContext.GetNavigationParameters() from the IsNavigatedTo method to read the parameters in the destination ViewModel.

I hope this helped you,

Gabriel Ostrowsky
Jan 20, 2014 at 6:17 PM
Edited Jan 20, 2014 at 6:19 PM
James, as an fyi we are taking INavigationAware out of Prism.Core to eliminate the confusion that you had. You will see this in our next drop.
Jan 21, 2014 at 8:34 AM
Cool sounds good, thank you