My department is currently using a WP 7 emulator and when the hardware back button is pressed, the default behavior is to close the current application. We're looking to override this so it will go back to the previous page in the app. This is what we've come up with so far:
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
// do some stuff ...
// cancel the navigation
e.Cancel = true;
But it's still not working the way we want. What else should we do here? Thanks!
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!