title: How can you override the FirstWindow shutdown mode in WPF?
body: <p>I've read up on how WPF handles the shutdown event.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/system.windows.application.shutdownmode.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.windows.application.shutdownmode.aspx</a></p>
  
  <p>However in my project I haven't specified the StartupURI in the application xaml. However when the first window of my application closes, the entire application closes.</p>
  
  <p>One way I have handled this so far is to create an empty window, and choose to not show it. This way I can go on to close/open windows without WPF calling shutdown when the user chooses to close the first window. </p>
  
  <p>However my solution doesn't feel elegant, is there a better way to handle this?</p>