private void InvalidateWindowRegion()
        {
            if (DesignMode)
            {
                return;
            }

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

            DummyControl.Paint += m_dummyControlPaintEventHandler;
            DummyControl.Invalidate();
        }
Example #2
0
        public DockPanel()
        {
            ShowAutoHideContentOnHover = true;

            m_focusManager = new FocusManagerImpl(this);
            Panes          = new DockPaneCollection();
            FloatWindows   = new FloatWindowCollection();

            SuspendLayout();

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

            DummyContent = new DockContent();
            ResumeLayout();
        }
 internal void ResetDummy()
 {
     DummyControl.ResetBackColor();
 }
 internal void SaveFocus()
 {
     DummyControl.Focus();
 }