You need to exit the application in the OnNavigatedToEvent
, so add the following override to your LaunchSettings.xaml.cs file:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
if (e.NavigationMode == NavigationMode.Back)
Application.Current.Terminate();
base.OnNavigatedTo(e);
}
Note that this will not trigger for example the Application_Closing
event (see this link: http://msdn.microsoft.com/en-us/library/windowsphone/develop/system.windows.application.terminate(v=vs.105).aspx).