private void Newt_PreviewMouseMove(Object sender, MouseEventArgs e) { var tabItem = e.Source as Wpf.Controls.TabItem; if (tabItem != null && Mouse.PrimaryDevice.LeftButton == MouseButtonState.Pressed) { DragDrop.DoDragDrop(tabItem, tabItem, DragDropEffects.All); } } }