hansfrevel
hansfrevel

Reputation: 13

howto get the event when someone press the back key and get in a xaml site in wp7?

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

Answers (2)

Claus Jørgensen
Claus Jørgensen

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

Den
Den

Reputation: 16826

There is PhoneApplicationPage.OnBackKeyPress that does exactly the job you are looking for.

Upvotes: 1

Related Questions