public GradientHeader()
 {
     _startColor       = this.BackColor;
     _endColor         = this.ForeColor;
     this.ResizeRedraw = true;
     _gradientHelper   = new GradientHelper <GradientHeader>(this);
 }
예제 #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;
 }