I’m building an application for Windows 8 and need to be able to close it programmatically using an action. For example, a button on my application.
I’m building my application using HTML5
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following event handler worked for me…I actually put an Exit icon in a global app bar…users love it!
Good Luck!
This solution above works for C#…it’s especially helpful when using Windows 8 Store Apps on machines that are not touch screen capable (our users were having difficulty emulating the top down swipe to close an app…other users are running a Windows 8 on a Mac VM which makes the Alt + F4 tough)