Beispiel #1
0
        public AlphaGradientPanel()
        {
            clGradient = new ColorWithAlphaCollection(this);

            /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
            /* TODO ERROR: Skipped RegionDirectiveTrivia */
            this.FontChanged    += AlphaGradientPanel_FontChanged;
            this.PaddingChanged += AlphaGradientPanel_PaddingChanged;
            /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
            this.Paint += AlphaGradientPanel_Paint;
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            BackColor = Color.Transparent;
        }
 public ColorWithAlphaCollectionPropertyDescriptor(ColorWithAlphaCollection Collection, int Index) : base("#" + Index.ToString(), null)
 {
     _Collection = Collection;
     _Index      = Index;
 }