Reputation: 13
how can i get the event when the user is on page A and go to page B. on page B he press back and returns tu page A. need to determin when this happen, how could i do this with wp7?
Upvotes: 1
Views: 156
Reputation: 26346
The OnNavigatedTo event that handles navigation to a page, be it by NavigationService's Navigate or GoBack method, have no event information on from which page you navigated from, and neither about how you navigated.
So in short: It's not possible. And I can't imagine any good reason for it either.
Upvotes: 1
Reputation: 16826
There is PhoneApplicationPage.OnBackKeyPress that does exactly the job you are looking for.
Upvotes: 1