How to recognize navigation direction?

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Oct 26, 2010 at 11:02 AM

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 6: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