ComponentFactory.Krypton.Toolkit.KryptonPaletteHeader.KryptonPaletteHeader C# (CSharp) Method

KryptonPaletteHeader() public method

Initialize a new instance of the KryptonPaletteHeader class.
public KryptonPaletteHeader ( PaletteRedirect redirect, PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Redirector to inherit values from.
backStyle PaletteBackStyle Background style.
borderStyle PaletteBorderStyle Border style.
contentStyle PaletteContentStyle Content style.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public KryptonPaletteHeader(PaletteRedirect redirect,
                                    PaletteBackStyle backStyle,
                                    PaletteBorderStyle borderStyle,
                                    PaletteContentStyle contentStyle,
                                    NeedPaintHandler needPaint)
        {
            // Create the storage objects
            _stateCommon = new PaletteHeaderRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
            _stateDisabled = new PaletteTripleMetric(_stateCommon, needPaint);
            _stateNormal = new PaletteTripleMetric(_stateCommon, needPaint);
        }