Using the App.Current.Terminate () Method on a Windows 8 Phone

As Windows Phone 8 provides us with this method for programmatically terminating the application, will there be any problem during application submission if we use this in the application to complete the page while there is no support in the navigation history?

+7
source share
3 answers

When using this call, there will be no problems with certification, but make sure that you save all the data in your application when calling this, because this call effectively kills your application right away - ApplicationClosing even the handler will not be raised after that!

+2
source

Why are you calling Application.Terminate when navigating back with an empty stack? Just attach the application to yourself. It is a little pointless for me to abuse Application.Terminate ().

0
source

I can't say much about the new Terminate method, but I have an application (NOTE: not a game) that does the following at certain points

private void Kill() { new Microsoft.Xna.Framework.Game().Exit(); } 

This application has been certified without any problems. This application is for WP7 and WP8, so I was not able to use Terminate ().

0
source

All Articles