title: WPF: weird problem in dataBinding with TabControl
body: <p>I'm trying to use DataBinding for dynamically populating a TabControl but have a problem. <code>dataBinding</code> runs fine but I would like the content of each TabItem to be independent one from the other. Here is my XAML code:</p>
  <pre><code>&lt;TabControl
      DockPanel.Dock=&quot;Left&quot;
      ItemsSource=&quot;{Binding OpenChats}&quot;
      Name=&quot;tabChats&quot;
      VerticalAlignment=&quot;Top&quot;
      Width=&quot;571&quot;&gt;
  
      &lt;TabControl.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock
                  Text=&quot;{Binding Name}&quot; /&gt;
          &lt;/DataTemplate&gt;
      &lt;/TabControl.ItemTemplate&gt;
      &lt;TabControl.ContentTemplate&gt;
          &lt;DataTemplate&gt;
  
              &lt;TextBox /&gt;
          &lt;/DataTemplate&gt;
      &lt;/TabControl.ContentTemplate&gt;
  
  &lt;/TabControl&gt;
  
  </code></pre>
  <p>TabItems are created with different headers (as I want) but when the user types something in the TextBox inside the ContentTemplate, the same text is maintained in different tabItems and I don't want this.</p>
  <p>What am I doing wrong?</p>