Can I find out which page a user came from on Back Button press on WP7?

前端 未结 5 1053
南旧
南旧 2021-01-05 21:14

I haven\'t had much luck finding the answer through google searches, but is it possible to tell which page a user came from?

Or, send a query string on back button

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 21:55

    One method is to override OnBackKeyPress on every page (except the main page, because that would be pointless). Within that function assign the name of the current page to a global variable. Now the page you've navigated back to can inspect the global variable and determine how you got there.

提交回复
热议问题