SyntaxFix
Write A Post
Hire A Developer
Questions
A complete solution is here
it's explained very nice with sample code. However, be careful that it does not close the application.Add the line Application.Current.Shutdown(); to gracefully close the app.