/// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonAppButton class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonAppButton(PaletteRedirect redirect,
                                      NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppButton);
     StateCommon   = new PaletteRibbonBack(_stateInherit, needPaint);
     StateNormal   = new PaletteRibbonBack(StateCommon, needPaint);
     StateTracking = new PaletteRibbonBack(StateCommon, needPaint);
     StatePressed  = new PaletteRibbonBack(StateCommon, needPaint);
 }
Exemple #2
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonGroupCollapsedBack class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonGroupCollapsedBack(PaletteRedirect redirect,
                                               NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit        = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupCollapsedBack);
     StateCommon          = new PaletteRibbonBack(_stateInherit, needPaint);
     StateNormal          = new PaletteRibbonBack(StateCommon, needPaint);
     StateTracking        = new PaletteRibbonBack(StateCommon, needPaint);
     StateContextNormal   = new PaletteRibbonBack(StateCommon, needPaint);
     StateContextTracking = new PaletteRibbonBack(StateCommon, needPaint);
 }
Exemple #3
0
        /// <summary>
        /// Initialize a new instance of the KryptonPaletteRibbon class.
        /// </summary>
        /// <param name="redirect">Redirector to inherit values from.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        internal KryptonPaletteRibbon(PaletteRedirect redirect,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

            // Store incoming reference
            _redirect = redirect;

            // Create redirectors
            _ribbonGeneralRedirect         = new PaletteRibbonGeneralInheritRedirect(redirect);
            _ribbonAppMenuInnerInherit     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuInner);
            _ribbonAppMenuOuterInherit     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuOuter);
            _ribbonAppMenuDocsInherit      = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonAppMenuDocs);
            _ribbonAppMenuDocsTitleInherit = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsTitle);
            _ribbonAppMenuDocsEntryInherit = new PaletteRibbonTextInheritRedirect(redirect, PaletteRibbonTextStyle.RibbonAppMenuDocsEntry);
            _ribbonQATFullRedirect         = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATFullbar);
            _ribbonQATOverRedirect         = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonQATOverflow);
            _ribbonGalleryBackRedirect     = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGalleryBack);
            _ribbonGalleryBorderRedirect   = new PaletteRibbonBackInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGalleryBorder);

            // Create palettes
            RibbonGeneral                   = new PaletteRibbonGeneral(_ribbonGeneralRedirect, needPaint);
            RibbonAppButton                 = new KryptonPaletteRibbonAppButton(redirect, needPaint);
            _ribbonAppMenuInner             = new PaletteRibbonBack(_ribbonAppMenuInnerInherit, needPaint);
            _ribbonAppMenuOuter             = new PaletteRibbonBack(_ribbonAppMenuOuterInherit, needPaint);
            _ribbonAppMenuDocs              = new PaletteRibbonBack(_ribbonAppMenuDocsInherit, needPaint);
            _ribbonAppMenuDocsTitle         = new PaletteRibbonText(_ribbonAppMenuDocsTitleInherit, needPaint);
            _ribbonAppMenuDocsEntry         = new PaletteRibbonText(_ribbonAppMenuDocsEntryInherit, needPaint);
            RibbonGroupArea                 = new KryptonPaletteRibbonGroupArea(redirect, needPaint);
            RibbonGroupButtonText           = new KryptonPaletteRibbonGroupButtonText(redirect, needPaint);
            RibbonGroupCheckBoxText         = new KryptonPaletteRibbonGroupCheckBoxText(redirect, needPaint);
            RibbonGroupNormalBorder         = new KryptonPaletteRibbonGroupNormalBorder(redirect, needPaint);
            RibbonGroupNormalTitle          = new KryptonPaletteRibbonGroupNormalTitle(redirect, needPaint);
            RibbonGroupCollapsedBorder      = new KryptonPaletteRibbonGroupCollapsedBorder(redirect, needPaint);
            RibbonGroupCollapsedBack        = new KryptonPaletteRibbonGroupCollapsedBack(redirect, needPaint);
            RibbonGroupCollapsedFrameBorder = new KryptonPaletteRibbonGroupCollapsedFrameBorder(redirect, needPaint);
            RibbonGroupCollapsedFrameBack   = new KryptonPaletteRibbonGroupCollapsedFrameBack(redirect, needPaint);
            RibbonGroupCollapsedText        = new KryptonPaletteRibbonGroupCollapsedText(redirect, needPaint);
            RibbonGroupRadioButtonText      = new KryptonPaletteRibbonGroupRadioButtonText(redirect, needPaint);
            RibbonGroupLabelText            = new KryptonPaletteRibbonGroupLabelText(redirect, needPaint);
            RibbonQATFullbar                = new PaletteRibbonBack(_ribbonQATFullRedirect, needPaint);
            RibbonQATMinibar                = new KryptonPaletteRibbonQATMinibar(redirect, needPaint);
            RibbonQATOverflow               = new PaletteRibbonBack(_ribbonQATOverRedirect, needPaint);
            RibbonTab            = new KryptonPaletteRibbonTab(redirect, needPaint);
            _ribbonGalleryBack   = new PaletteRibbonBack(_ribbonGalleryBackRedirect, needPaint);
            _ribbonGalleryBorder = new PaletteRibbonBack(_ribbonGalleryBorderRedirect, needPaint);
        }
Exemple #4
0
        /// <summary>
        /// Initialize a new instance of the PaletteRibbonBackRedirect class.
        /// </summary>
        /// <param name="redirect">Inheritence redirection instance.</param>
        /// <param name="backStyle">Inheritence ribbon back style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteRibbonBackRedirect(PaletteRedirect redirect,
                                         PaletteRibbonBackStyle backStyle,
                                         NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Store the inherit instances
            _inheritBack = new PaletteRibbonBackInheritRedirect(redirect, backStyle);

            // Define default values
            _backColor1 = Color.Empty;
            _backColor2 = Color.Empty;
            _backColor3 = Color.Empty;
            _backColor4 = Color.Empty;
            _backColor5 = Color.Empty;
        }