I have this application schema :
[List Page] -> [Detail Page] -> [ShareOnFacebook Page]
^__________________|
- The user select an
Itemin the[List Page] - The user may or may not click a
Sharebutton if he or she does, the application navigates to a[ShareOneFacebook page]which displays a Facebook Login Form, posts a message and navigates back - The user navigates back.
If the user shared on facebook, it will “repost” the message, because the application store the session so it will navigate back to ShareOnFacebook, and then back to my Detail page.
If the user didn’t share, he goes back to the List Page.
How can I “ommit” the ShareOnFacebook page in my navigation stack ?
Try this: Call
NavigationService.RemoveBackEntry();in theOnNavigatedTomethod. This will remove the previous page from the stack. In my opinion the trick withNavigation.GoBack();is not satisfying because it shows the page to remove for a short time.Note: Works only with Windows Phone OS 7.1 (Mango) SDK