Reputation: 607
I want to reorder WPF tab control in using C#
Upvotes: 2
Views: 2461
Reputation: 14660
The TabControl
has an ItemsCollection
that it inherits from ItemsControl
. You can remove items from that list and re-add them using Add()
and Remove()
or RemoveAt()
:
Object tabToMove = Items[3];
Items.RemoveAt(3);
Items.Insert(1, tabToMove);
Upvotes: 6