title: TabControl's TabItems sharing same content... Do Not Want
body: <p>The following example xaml causes each tab item to share the same TextBox. It makes sense, on some level I guess... but it's unexpected behavior, and almost feels like a bug. And I couldn't find any information in the docs explaining the behavior, or how to correctly get around it.</p>
  
  <pre><code>&lt;TabControl&gt;
      &lt;TabControl.Resources&gt;
          &lt;Style TargetType="TabItem"&gt;
              &lt;Setter Property="ContentTemplate"&gt;
                  &lt;Setter.Value&gt;
                      &lt;DataTemplate&gt;
                          &lt;TextBox /&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/Setter.Value&gt;
              &lt;/Setter&gt;
          &lt;/Style&gt;
      &lt;/TabControl.Resources&gt;
      &lt;TabItem Name="tab1" /&gt;
      &lt;TabItem Name="tab2" /&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>When switching between tab1 and tab2, the same TextBox is used, when I would expect a new TextBox for each tab. How can I get the latter case?</p>
  
  <p>Subclassing TabItem and making its content a TextBox by default is one way to do it, but I just want to be sure there isn't something I'm missing.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I realize that setting the content explicitly for each tab will solve the problem, but the tabs are to be created dynamically. I want to use the content template so that I may add new tabs via data binding and have the content unshared as it is causing quirky behavior.</p>
  
  <p>Perhaps with the current implementation of the TabControl, there is no declarative approach to solving this. It's pretty trivial setting the content in code, but such things always feel wrong in WPF. To me, this seems like an unjustified optimization of the TabControl; it should at least be optional for situations where it is not practical.</p>