title: How to add new user control in TabControl.ContentTemplate?
body: <p>I am little stuck with adding new instances of a usercontrol in a <code>TabControl.ContentTemplate</code>?</p>
  
  <p>My Xaml is here:</p>
  
  <pre><code>&lt;TabControl ItemsSource="{Binding Tables}"&gt;
      &lt;TabControl.ItemTemplate&gt;
          &lt;DataTemplate&gt;
  
          &lt;/DataTemplate&gt;
      &lt;/TabControl.ItemTemplate&gt;
      &lt;TabControl.ContentTemplate&gt;
          &lt;DataTemplate DataType="{x:Type uc:mytest1}"&gt;
              &lt;uc:mytest1&gt;
  
              &lt;/uc:mytest1&gt;
          &lt;/DataTemplate&gt;
      &lt;/TabControl.ContentTemplate&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>I am binding <code>TabControl.ItemsSource</code> property to an <code>ObservableCollection</code> and in the content template I am adding a user control, but when this app runs I am getting new items as <code>TabItem</code>s but the content page is holding same user control, but I want new user controls to be added for each new <code>TabItem</code>.</p>
  
  <p>I am very new to the WPF and may be I am doing a very basic mistake, kindly guide me.</p>