I've begun tinkering with making windows 8 apps And I want to make an exit button.
The problem is that Environment.Exit()
and this.Close()
that I'd use in winforms isn't in scope here.
anyone know how to close the app Programmatically?
Application.Current.Exit();
But closing a Metro app is not recommended. It is usually suspended.
Application.Exit
But be careful. You can fail certification by having code which forcefully closes the App. Make sure to read up on Certification Guidance if you plan to release to the store:
Your app must neither programmatically close nor offer UI affordances to close it. Windows 8 Process Lifetime Management closes Windows Store apps automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With