SyntaxFix
Write A Post
Hire A Developer
Questions
In this case, the most proper way to exit the application in to override onExit() method in App.xaml.cs:
protected override void OnExit(ExitEventArgs e) { base.OnExit(e); }