Esempio n. 1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            GraphicsPath bgGP = DrawHelper.CreateRoundRect(ClientRectangle.X,
                                                           ClientRectangle.Y,
                                                           ClientRectangle.Width - 1,
                                                           ClientRectangle.Height - 1,
                                                           _roundedCorner);

            e.Graphics.FillPath(MaterialSkinManager.GetPanelBackgroundBrush(_primary), bgGP);

            if (!DesignMode && Controls.Count > 0)
            {
                this.DrawChildShadow(e.Graphics);
            }
        }