title: WPF/MVVM - how to execute commands on start-up?
body: <p>I'm writing a WPF app following MVVM principles.</p>
  
  <p>I wan't to execute a command on startup - I'm in doubt as to what is the best method?</p>
  
  <p>The ViewModel should be indifferent as to whether there are any views, right?</p>
  
  <p>Is it then 'ok' to do stuff as the last thing in VM constructor? Or is there an event for 'application is now up and running, all initialization has completed' that I can hook onto?</p>
  
  <p>It feels wrong to wire it into the view model?</p>
  
  <p>To be a bit concrete, I'd like to do as Visual Studio and load 'most recent solution' if the user has selected that in preferences. If the user manually loads a solution through GUI I start the flow in a MainFormViewModel and I could handle the load in last lines of constructor there?</p>
  
  <p>Any thoughts? </p>
  
  <p>Anders, Denmark</p>