INavigationAware and IsNavigationTarget in Prism 4.2

Topics: Prism v4 - WPF 4
Jan 17, 2014 at 4: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 4: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,
Regards.

Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky
Coordinator
Jan 20, 2014 at 5:17 PM
Edited Jan 20, 2014 at 5: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 7:34 AM
Cool sounds good, thank you