How to recognize navigation direction?

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Oct 26, 2010 at 12:02 PM

I started using the new region based navigation. One thing I can't find though is how to recognize the navigation direction. Regular SL navigation exposes this via NavigationMode property on NavigationCancelEventArgs:

I think this informaiton should be also exposed on the NavigationContext because it is sometimes important to the logic to determine if we navigate to new page or going back the stack. In my scenario I'm trying to add page transition animation and would like to run different animaitons for going forward or back.

Oct 28, 2010 at 7:47 PM


There is no integration with Silivelight 4 Frame Navigation in Prism out-of-the-box. But 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