public GradientHeader()
 {
     _startColor       = this.BackColor;
     _endColor         = this.ForeColor;
     this.ResizeRedraw = true;
     _gradientHelper   = new GradientHelper <GradientHeader>(this);
 }
Ejemplo n.º 2
0
 public GradientPanel()
 {
     // Set the styles to make things draw properly:
     base.SetStyle(
         ControlStyles.AllPaintingInWmPaint |
         ControlStyles.DoubleBuffer |
         ControlStyles.ResizeRedraw |
         ControlStyles.SupportsTransparentBackColor,
         true);
     _gradientHelper   = new GradientHelper <GradientPanel>(this);
     this.ResizeRedraw = true;
 }