title: WPF Application still runs in background after closing
body: <p>This is slightly related to the question asked here yet the answer does not apply to my case as I am not using threads:</p>
  <p><a href="https://stackoverflow.com/questions/1116133/my-wpf-app-still-running-if-i-open-another-window">WPF Not closing properly</a></p>
  <p>I have converted one of my WinForm application to a WPF application, nothing drastic needed to be done except for change a few words to the WPF/C# 4.0 equivalents (MessageBoxButtons to MessageBoxButton, why the one letter difference?).</p>
  <p>Anyway, if I run the application through the debugger it runs fine until I come to close it with the &quot;X&quot; button to the top right of the window. The application window closes but I noticed that the debugger still shows the stop icon, checking in the Task Manager confirms it is still running.</p>
  <p>I am not running any other threads in the background so I know it's not waiting for something else.</p>
  <p>I've only just started with WPF but I assumed that when the user closes the application then it should just...close?</p>
  <p>Thanks for the help!</p>