Exemplo n.º 1
0
        void CustomSimpleButton_Paint(object sender, PaintEventArgs e)
        {
            CustomSimpleButton sb = (CustomSimpleButton)sender;
            Graphics           g  = e.Graphics;
            Rectangle          borderRectangle = new Rectangle(
                e.ClipRectangle.Location,
                new Size(
                    e.ClipRectangle.Width - 1,
                    e.ClipRectangle.Height - 1));

            //   g.DrawRectangle(new Pen(sb.Appearance.BorderColor), borderRectangle);
            g.DrawRectangle(new Pen(Color.Red), borderRectangle);
        }
Exemplo n.º 2
0
 public CustomViewInfo(SimpleButton owner) : base(owner)
 {
     _owner = owner as CustomSimpleButton;
 }