Hi,
Thanks for choosing Syncfusion products.
Your requirements could be achieved only by workaround while dragging and dropping of tabitem.
For Instance,
// Temporary varaible for storing dragged item
int draggedItemIndex = 0;
TabItemExt draggedItem = null;
private void TabControlExt1_DragEnd(object sender, TabControlExtDragEventArgs e)
{
// Store the dragged item before drop
draggedItem = TabControlExt1.SelectedItem as TabItemExt;
draggedItemIndex = TabControlExt1.Items.IndexOf(draggedItem);
}
private void TabControlExt1_Drop(object sender, DragEventArgs e)
{
int i = TabControlExt1.SelectedIndex;
// Check the dragged item is placed at the end of the Tab
if (i == TabControlExt1.Items.Count - 1)
{
// Remove that dragged item
TabControlExt1.Items.RemoveAt(i);
// Placed the dragged item in original position itself.
TabControlExt1.Items.Insert(draggedItemIndex, draggedItem);
TabControlExt1.SelectedIndex = draggedItemIndex;
}
}
Your query regarding 'tab can be selected (not with the mouse, but by the ctrl-tab shortcut, or the tabs menu)' is
achieved by writing the trigger for selecting the tab.
Please download the modified sample from below mentioned location for more information. Hope this will resolve your problem.
http://files.syncfusion.com/support//Tools.WPF/7.3.0.20/89197/ModifiedTabControlIE7_Demo.zipPlease let us know if you have any other queries.
Regards,
Sudha.C