ComponentFactory.Krypton.Toolkit.KryptonSplitterPanelDesigner.OnPaintAdornments C# (CSharp) Method

OnPaintAdornments() protected method

Receives a call when the control that the designer is managing has painted its surface so the designer can paint any additional adornments on top of the control.
protected OnPaintAdornments ( PaintEventArgs pe ) : void
pe PaintEventArgs A PaintEventArgs the designer can use to draw on the control.
return void
        protected override void OnPaintAdornments(PaintEventArgs pe)
        {
            // Let base class paint first
            base.OnPaintAdornments(pe);

            // If the panel has no children, then draw the watermark
            if ((_panel != null) && (_panel.Controls.Count == 0))
                DrawWaterMark(pe.Graphics);
        }