Пример #1
0
        /// <summary>
        /// Handle AutoHide/Hide commande issued by user on temporary pane
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void _tempPane_OnStateChanged(object sender, EventArgs e)
        {
            Pane pane = gridDocking.GetPaneFromContent(_currentButton.DockableContent);

            if (_currentButton != null)
            {
                switch (_currentButton.DockingButtonGroup.Dock)
                {
                    case Dock.Left:
                    case Dock.Right:
                        pane.PaneWidth = _tempPane.PaneWidth;
                        break;
                    case Dock.Top:
                    case Dock.Bottom:
                        pane.PaneHeight = _tempPane.PaneHeight;
                        break;
                }

                RemoveDockingButtons(_currentButton.DockingButtonGroup);
                _dockingBtnGroups.Remove(_currentButton.DockingButtonGroup);
            }

            bool showOriginalPane = (_tempPane.State == PaneState.Docked);

            HideTempPane(false);

            if (showOriginalPane)
                pane.Show();
            else
                pane.Hide();
        }
Пример #2
0
 public void MoveInto(DockablePane sourcePane, Pane destinationPane)
 {
     Remove(sourcePane);
     while (sourcePane.Contents.Count > 0)
     {
         DockableContent content = sourcePane.Contents[0];
         sourcePane.Remove(content);
         destinationPane.Add(content);
         destinationPane.Show(content);
     }
     sourcePane.Close();
 }
Пример #3
0
 public void MoveInto(DockablePane sourcePane, Pane destinationPane)
 {
     Remove(sourcePane);
     while (sourcePane.Contents.Count > 0)
     {
         DockableContent content = sourcePane.Contents[0];
         sourcePane.Remove(content);
         destinationPane.Add(content);
         destinationPane.Show(content);
     }
     sourcePane.Close();
 }