title: Change subview with binding
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5309099/changing-the-view-for-a-viewmodel">Changing the View for a ViewModel</a>  </p>
  </blockquote>
  
  
  
  <p>I have a view:</p>
  
  <pre><code>&lt;UserControl ...&gt;
      &lt;Grid&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition /&gt;
              &lt;ColumnDefinition /&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;ComboBox ItemSource="{Binding Items}" /&gt;
          **&lt;???&gt;**
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>I have ViewModel:</p>
  
  <pre><code>public class VM
  {
      // ...
      public List&lt;Entities&gt; Items { get; set;}
      public String Title { get; set; }
  }
  </code></pre>
  
  <p>and I have a few subview's like this:</p>
  
  <pre><code>&lt;UserControl ...&gt;
      &lt;TextBlock Text="{Binding Title}" /&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>When user selecta some value from <code>ComboBox</code> in main View, I need to place in second column
  of main View some of <code>subViews</code>. If user selects other value in <code>ComboBox</code>, another <code>subView</code> sould replace existing <code>subView</code>.</p>
  
  <p>How can it be done?</p>