protected override void OnCreateControl()
        {
            base.OnCreateControl();

            Font      = SkinHelper.StandardFont;
            BackColor = SkinHelper.GetCurrentSkin().TranslateColor(SystemColors.Control);
        }
Exemple #2
0
 private void clear(Graphics g)
 {
     if (DesignModeHelper.IsDesignMode)
     {
         using (var brush = new SolidBrush(BackColor))
         {
             g.FillRectangle(
                 brush,
                 ClientRectangle);
         }
     }
     else
     {
         g.FillRectangle(
             SkinHelper.GetCurrentSkin().GetUntranslatedBrush(BackColor),
             ClientRectangle);
     }
 }
Exemple #3
0
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            clear(e.Graphics);

            if (DesignModeHelper.IsDesignMode)
            {
                using (var pen = new Pen(SystemColors.ControlDark))
                {
                    e.Graphics.DrawLine(
                        pen,
                        ClientRectangle.Left, ClientRectangle.Top, ClientRectangle.Width, ClientRectangle.Top);
                }
            }
            else
            {
                e.Graphics.DrawLine(
                    //SkinHelper.GetCurrentSkin().GetUntranslatedPen(Color.Green),
                    SkinHelper.GetCurrentSkin().GetUntranslatedPen(SkinHelper.LineColorTop),
                    ClientRectangle.Left, ClientRectangle.Top, ClientRectangle.Right, ClientRectangle.Top);
            }
        }
 public MyHelperXtraTabPage()
 {
     base.BackColor = SkinHelper.GetCurrentSkin().TranslateColor(SystemColors.Control);
 }