Provides a movement rectangle that will be used to limit separator movement.
Inheritance: System.EventArgs
Beispiel #1
0
 /// <summary>
 /// Raises the SplitterMoveRect event.
 /// </summary>
 /// <param name="e">A SplitterMoveRectMenuArgs containing the event data.</param>
 protected virtual void OnSplitterMoveRect(SplitterMoveRectMenuArgs e)
 {
     if (SplitterMoveRect != null)
     {
         SplitterMoveRect(this, e);
     }
 }
        private void OnDockspaceSeparatorMoveRect(object sender, SplitterMoveRectMenuArgs e)
        {
            if (!_dockspaceSlide.ContainsFocus)
            {
                _dockspaceSlide.Select();
                Application.DoEvents();
            }

            if (SplitterMoveRect != null)
                SplitterMoveRect(sender, e);
        }
        private void OnSlidePanelSeparatorMoveRect(object sender, SplitterMoveRectMenuArgs e)
        {
            // Cast to correct type and grab associated dockspace control
            KryptonDockspaceSeparator separatorControl = (KryptonDockspaceSeparator)sender;
            KryptonDockspace dockspaceControl = _slidePanel.DockspaceControl;
            KryptonPage page = _slidePanel.Page;

            // Events are generated from the parent docking manager
            KryptonDockingManager dockingManager = DockingManager;
            if (dockingManager != null)
            {
                // Allow the movement rectangle to be modified by event handlers
                AutoHiddenSeparatorResizeEventArgs autoHiddenSeparatorResizeRectArgs = new AutoHiddenSeparatorResizeEventArgs(separatorControl, dockspaceControl, page, FindMovementRect(e.MoveRect));
                dockingManager.RaiseAutoHiddenSeparatorResize(autoHiddenSeparatorResizeRectArgs);
                e.MoveRect = autoHiddenSeparatorResizeRectArgs.ResizeRect;
            }
        }
Beispiel #4
0
 /// <summary>
 /// Raises the SplitterMoveRect event.
 /// </summary>
 /// <param name="e">A SplitterMoveRectMenuArgs containing the event data.</param>
 protected virtual void OnSplitterMoveRect(SplitterMoveRectMenuArgs e)
 {
     if (SplitterMoveRect != null)
         SplitterMoveRect(this, e);
 }
Beispiel #5
0
        private void separator_MoveRect(object sender, SplitterMoveRectMenuArgs e)
        {
            // Allow the splitter to move 50 pixels in each direction
            e.MoveRect = new Rectangle(e.MoveRect.X - 50,
                                       e.MoveRect.Y - 50,
                                       e.MoveRect.Width + 100,
                                       e.MoveRect.Height + 100);

            Output("MoveRect " + e.MoveRect.ToString());
        }
Beispiel #6
0
 /// <summary>
 /// Raises the SplitterMoveRect event.
 /// </summary>
 /// <param name="e">A SplitterMoveRectMenuArgs containing the event data.</param>
 protected virtual void OnSplitterMoveRect(SplitterMoveRectMenuArgs e)
 {
     SplitterMoveRect?.Invoke(this, e);
 }