How to

exit WPF application

Published: 1. December 2011 | Updated: 1. December 2011
License: Microsoft Public License (MS-PL)
Categories: WPF
Tags: WPF
Was this snippet helpful for you? YESYES / NONO

Snippet example shows how to exit WPF application programmatically

Import namespace

using System.Windows;

Code

Application.Current.Shutdown();
Send us feedback about this snippet »



Related Snippets: