[Navigation] Global navigation error handler

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Oct 28, 2010 at 7:13 AM

Currently I can capture navigation errors by passing navigationCallback to RegionManager.RequestNavigate method. I would like to also add a global error handler just like I can do in regular Silverlight 4 navigation (attaching hanler to Frame.NavigationFailed). Is this possible with Prism navigation?

Oct 28, 2010 at 8:10 PM


There is no guidance on this topic in Prism out-of-the-box. But you could create a service to navigate, and it calls the RequestNavigate method. So you could manage in this service all navigation errors.

Additionally, I think that you can find interesting the following post from the Karl Shifflett's Blog: Integrating Prism v4 Region Navigation with Silverlight Frame Navigation.

Hope this helps.

Fernando Antivero