WPF application is not closing correctly WPF application is not closing correctly wpf wpf

WPF application is not closing correctly


Have you created any threads to do background processing? If you have, make sure to set the .IsBackground property on them, or they can keep the app running


Don't forget to add this:

private void Window_Closed(object sender, EventArgs e){  Application.Current.Shutdown();}

Hope this helps.