すべてのバインディングを完全に保持しながら、WPF TabItem の現在の状態を反映するために、タブのすべてのコンテンツを複製する必要があります。要件は、各タブが独自の同一のコントロール グループで独立して機能することです。これまでのところ、空白のタブしか作成できませんでした。MSDN は、これが不可能であることを示唆しています。MS が見逃しているかなり基本的な機能のように思えますが、これは可能ですか?
// 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;