Prism view-based navigation with RETURN parameters?

Topics: Prism v4 - WPF 4
Feb 15, 2011 at 1:46 AM

I just converted a desktop application from view-injection to view-navigation. It's working well for what it does right now.

The ability to pass parameters during navigation is very useful, but now I'm looking for a way to return values (aka parameters) when the 'navigated-to' view calls GoBack(). Am I missing something obvious or is there really no support for returning parameters with GoBack()? Just being able to supply a UriQuery object to GoBack() would be good enough.




Feb 15, 2011 at 2:55 PM

Hi Jim,

The IRegionNavigationJournal.GoBack method doesn´t support passing parameters to the last navigated view, so you could navigate again into that view (using the RequestNavigate method) supplying the new parameters with the UriQuery class.

Additionally, you can check this thread where a similar concern is treated.

I hope you find this information useful.


Miguel Bronzovic


Feb 15, 2011 at 5:00 PM

Using RequestNavigate instead of IRegionNavigationJouran.GoBack doesn't work well because:

  1. It adds another entry the the navigation journal (instead of removing the last entry), and
  2. I'm trying to create a view that will be used from several other views. It can't always navigate back to the same (hardcoded) view. It needs to return to the view that it came from and I haven't seen a way for the view to get the Uri of the prior (GoBack) journal entry. I suppose I could pass the prior Uri as a parameter to the view and then use that to RequestNavigate back, but that's working around the journal, not working with it.






Feb 15, 2011 at 5:32 PM


Take into account that the Navigation Journal service doesn´t support passing parameters out of the box.

If your scenario requires the possibility of passing parameters to the GoBack method of the journal, one possible way to fulfill your requirement would be to extend Prism´s IRegionNavigationJournal to include the necessary functionality to do so.

Please let me know if this information helps you.


Miguel Bronzovic