title: How do I switch views from within a view?
body: <p>I'm making a WPF application making use of the MVVM light framework.</p>
  
  <p>What I'm trying to do is have a login form in a view, when the user presses a button within that view it launches a LoginCommand for the attached ViewModel. From there I either want to launch a new window which holds the rest of the application, or simply switch views from the same window.</p>
  
  <p>Currently I have it so that there is a view called MainView which has a content control inside bound to View1. However to switch to View2 I need to put the button for this on MainView, and not within View1 where it belongs.</p>
  
  <p>Any advice?</p>