title: What's the easiest way to clone a TabItem in WPF?
body: <p>I have the need to clone all of the contents of a tab to reflect the current state of a WPF TabItem, fully preserving all the bindings. The requirement is that each Tab should function independently with its own group of identical controls.  I've so far only managed to create blank tabs. MSDN suggests this isn't possible. Seems like pretty basic functionality for MS to miss, so is this possible?</p>
  
  <pre><code>//    locate the TabControl that the tab will be added to
  TabControl itemsTab = (TabControl) this.FindName("tabControl");
  
  //    create and populate the new tab and add it to the tab control
  TabItem newTab = new TabItem(); //This should instead clone an existing tab called "mainTab"
  newTab.Content = detail;
  newTab.Header = name;
  itemsTab.Items.Add(newTab);
  
  //    display the new tab to the user; if this line is missing
  //    you get a blank tab
  itemsTab.SelectedItem = newTab;
  </code></pre>