I need to call the back button command at some point in my application programmatically, so what is the command for that.
The issue is that i need the application to exit when the user presses back from the second page, hence i need to call the back button command when navigated on to the first page to exit.
I searched online and found out that there is no systematic way to exit an application in code so any suggestion?
Thanks,
I need to call the back button command at some point in my application
Share
Call
NavigationService.RemoveBackEntry();inOnNavigatedToof the second page. This will remove the first page from the navigation stack and if the user presses the back key the application will exit.Warning: Call remove only once! (multitasking calls
OnNavigatedTomultiple times)(WP 7.1 [Mango] only)