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.