Esempio n. 1
0
        public DockPanel()
        {
            m_focusManager = new FocusManagerImpl(this);
            Extender       = new DockPanelExtender(this);
            Panes          = new DockPaneCollection();
            FloatWindows   = new FloatWindowCollection();

            SuspendLayout();

            AutoHideWindow         = new AutoHideWindowControl(this);
            AutoHideWindow.Visible = false;
            SetAutoHideWindowParent();

            DummyControl        = new DummyControl();
            DummyControl.Bounds = new Rectangle(0, 0, 1, 1);
            Controls.Add(DummyControl);

            DockWindows = new DockWindowCollection(this);
            Controls.AddRange(new Control[]
            {
                DockWindows[DockState.Document],
                DockWindows[DockState.DockLeft],
                DockWindows[DockState.DockRight],
                DockWindows[DockState.DockTop],
                DockWindows[DockState.DockBottom]
            });

            DummyContent = new DockContent();
            ResumeLayout();
        }
Esempio n. 2
0
        private void InvalidateWindowRegion()
        {
            if (DesignMode)
            {
                return;
            }

            if (m_dummyControlPaintEventHandler == null)
            {
                m_dummyControlPaintEventHandler = new PaintEventHandler(DummyControl_Paint);
            }

            DummyControl.Paint += m_dummyControlPaintEventHandler;
            DummyControl.Invalidate();
        }
 internal void SaveFocus()
 {
     DummyControl.Focus();
 }
Esempio n. 4
0
 internal void ResetDummy()
 {
     DummyControl.ResetBackColor();
 }