Revisiting an old post - Application.Terminate
Well, I already did that once today, but in doing so I realized I should address another old post (or two).
Yes, in Windows Phone 8 we have added the Application.Terminate method so that you can quickly exit your application in the case of insurmountable roadblocks such as the user refusing to accept the EULA or not signing into their account. As noted in the docs though, this is not a "clean" shutdown (you will not receive any navigation events nor any lifecycle events) so if you have any state to save, you need to save it first.
The guidance from the previous two posts still stands -- in general you should not need an "Exit" button in your app, nor should you normally need to terminate yourself -- but in the cases where you really really really need to, now you have a better option than just crashing.
Comments
Anonymous
February 19, 2013
The comment has been removedAnonymous
February 19, 2013
Michael - that kind of scenario is better served by the back-stack manipulation APIs. blogs.msdn.com/.../back-means-back-not-forwards-not-sideways-but-back.aspxAnonymous
February 19, 2013
The comment has been removed