DockWindow.SplitterControl.cs
上传用户:szlfmled
上传日期:2020-11-22
资源大小:978k
文件大小:1k
源码类别:

C#编程

开发平台:

C#

  1. using System;
  2. using System.Collections;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Windows.Forms;
  6. namespace WeifenLuo.WinFormsUI.Docking
  7. {
  8.     public partial class DockWindow
  9.     {
  10.         private class SplitterControl : SplitterBase
  11.         {
  12.             protected override int SplitterSize
  13.             {
  14.                 get { return Measures.SplitterSize; }
  15.             }
  16.             protected override void StartDrag()
  17.             {
  18.                 DockWindow window = Parent as DockWindow;
  19.                 if (window == null)
  20.                     return;
  21.                 window.DockPanel.BeginDrag(window, window.RectangleToScreen(Bounds));
  22.             }
  23.         }
  24.     }
  25. }