Closing Your Application


  1. WPF


A common way to close the application is to use the following command:

However, although your main form will close, this can sometimes leave remnants (e.g. processes) running in the background. If this is happening, I have found that the following way exits everything: