What's the easiest way to clone a TabItem in WPF?
问题 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? // locate the TabControl that the tab will be added to TabControl itemsTab = (TabControl) this