title: How to show a data template on a content control?
body: <p>Imagine that in one data template, I have a textBox, and another data template, I've got two textboxes.</p>
  
  <p>According to this, in the view has a checkbox, and show each template.. is this possible?</p>
  
  <p>Sorry if my question is so doubt, I've investigate it but I didn't find out.</p>
  
  <p>I was did this, I know this is useless, but is only for testing.</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="350" Width="525"&gt;
  
      &lt;Window.Resources&gt;
          &lt;DataTemplate DataType="{x:Type ContentControl}" x:Key="T1"&gt;
              &lt;StackPanel&gt;
                  &lt;TextBox Height="20" /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
          &lt;DataTemplate DataType="{x:Type ContentControl}" x:Key="T2"&gt;
              &lt;StackPanel&gt;
                  &lt;TextBox Height="20" /&gt;
                  &lt;TextBox Height="20" /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/Window.Resources&gt;
  
  
      &lt;Grid&gt;
          &lt;ContentControl Template="{StaticResource T1}" /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>