How to Exit a Windows Store App

How to close a Windows Store App using C#.
  • 1963
The App.Current gives you the current application instance. We can call the Exit method of current running application to close it. 

Write the following code: 

App.Current.Exit()
© 2020 DotNetHeaven. All rights reserved.