title: how to dynamically change userControl on button (click) present in the usercontrol in wpf MVVM light
body: <p>I have a Main Window that host  Usercontrol as ContentControl host.What i want is, to dynamically change usercontrol on button click(present in the first Usercontrol ) to another usercontrol.</p>
  
  <p>Currently I have created a DataTemplate in the Main Window resources consisting of the respective ViewModel of the usercontrol</p>
  
  <p><pre> <code></p>
  
  <pre><code>&lt;DataTemplate DataType="{x:Type Tube:ViewModel1}" &gt;
          &lt;Tube:View1/&gt;
   &lt;/DataTemplate&gt;
  
   &lt;DataTemplate DataType="{x:Type Tube1:ViewModel2}"&gt;
          &lt;Tube2:View2/&gt;
   &lt;/DataTemplate&gt;
  </code></pre>
  
  <p></pre> </code></p>
  
  <p>I want to change to from View1 to view2 on button click present in view1. So what should i do in ViewModel1(US1 viewModel) to change to US2</p>
  
  <p>I am currently working on MVVM light.</p>
  
  <p>I have a service locator that has the registered instance of each VM. The problem is how can i point to VM2 instance in VM1.</p>
  
  <p>Any help is welcomed!!!!!</p>