public TabReorderAndFlyoutManager(DockingGroupTabItem owner) { if (owner == null) throw new ArgumentNullException("owner", "owner is null."); ManagedItem = owner; InitHandler(); }
public TabItemReorderManager(DockingGroupTabItem owner) { ManagedItem = owner; InitHandler(); }
private void MoveTab(DockingGroupTabItem item, DockingGroupTabItem targetItem, TabGroup parentTabGroup) { ManagedItem.View.DockManager.LockActiveView(); parentTabGroup.Move(item.View, parentTabGroup.Items.IndexOf(targetItem.View)); ManagedItem.View.DockManager.UnlockActiveView(); item.ReorderManager.ItemMoved = true; }
private void MoveTabToPosition(DockingGroupTabItem item, DockingGroupTabItem targetPosition, TabGroup parentTabGroup) { ManagedView.DockManager.LockActiveView(); parentTabGroup.Move(item.View, parentTabGroup.Items.IndexOf(targetPosition.View)); ManagedView.DockManager.UnlockActiveView(); item.ReorderManager._itemMoved = true; if (ManagedView.ParentContent is IInputElement) _mouseXForFloatingWindow = Mouse.GetPosition(ManagedView.ParentContent as IInputElement).X; }