Mango Sample: Exit Application
In a WPF application you say App.Exit() and your application terminates. It’s not so simple in Windows Phone. Since there is no Exit() method – it’s hard to know what to do.
I’ll assumption there are valid reasons to exit your application. One example might be too many login attempts. You might have your own scenarios.
If you throw an unhandled exception your application will terminate. Unfortunately, nobody will ever know because unhandled exceptions will not pass certification. We need a methodical, reliable way to terminate our application.