コード例 #1
0
        public TabReorderAndFlyoutManager(DockingGroupTabItem owner)
        {
            if (owner == null)
                throw new ArgumentNullException("owner", "owner is null.");

            ManagedItem = owner;
            InitHandler();
        }
コード例 #2
0
 public TabItemReorderManager(DockingGroupTabItem owner)
 {
     ManagedItem = owner;
     InitHandler();
 }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }