Is it possible to rearrange tab items in tab control in run time? For example I have 3 tab items which are about cars and 4 tabs about house. I want to be able to rearrange them using drag and drop. Is it possible or it is something fantastic?
I have Tab Control here is XAML.
<TabControl x:Name="tc" Visibility="Collapsed" GotFocus="Focus" AllowDrop="True" >
</TabControl>
Tab items will be added in runtime.
Thanks for helping me!
found a solution in the MSDN forum.
Here is the link:
DragDrop TabItem
Here is the solution:
C# solution
WPF code:
C# code behind: