/// <summary>
 /// Initialize a new instance of the PaletteDoubleRedirect class.
 /// </summary>
 /// <param name="redirect">inheritance redirection instance.</param>
 /// <param name="back">Storage for back values.</param>
 /// <param name="backInherit">inheritance for back values.</param>
 /// <param name="border">Storage for border values.</param>
 /// <param name="borderInherit">inheritance for border values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteDoubleRedirect(PaletteRedirect redirect,
                              PaletteBack back,
                              PaletteBackInheritRedirect backInherit,
                              PaletteBorder border,
                              PaletteBorderInheritRedirect borderInherit,
                              NeedPaintHandler needPaint)
 {
     Construct(redirect, back, backInherit, border, borderInherit, needPaint);
 }
示例#2
0
        public KryptonListView()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor | ControlStyles.EnableNotifyMessage, true);

            UpdateStyles();

            OwnerDraw = true;

            _originalFont = (Font)Font.Clone();

            _originalForeColour = (Color)ForeColor;

            _palette = KryptonManager.CurrentGlobalPalette;

            if (_palette != null)
            {
                _palette.PalettePaint += OnPalettePaint;
            }

            KryptonManager.GlobalPaletteChanged += OnGlobalPaletteChanged;

            _paletteRedirect = new PaletteRedirect(_palette);

            _paletteBack = new PaletteBackInheritRedirect(_paletteRedirect);

            _paletteBorder = new PaletteBorderInheritRedirect(_paletteRedirect);

            _paletteContent = new PaletteContentInheritRedirect(_paletteRedirect);

            InitialiseColours();

            lvwColumnSorter = new ListViewColumnSorter();

            this.ListViewItemSorter = lvwColumnSorter;

            if (_selectEntireRowOnSubItem)
            {
                FullRowSelect = true;
            }

            _enableVistaCheckBoxes = Utility.IsVistaOrHigher();

            InitializeComponent();

            _designMode = (Process.GetCurrentProcess().ProcessName == "devenv");

            if (SmallImageList == null)
            {
                SmallImageList = ilHeight;
            }
        }
示例#3
0
        void RefreshPalette()
        {
            palette = paletteMode == PaletteMode.Global ? KryptonManager.CurrentGlobalPalette : KryptonManager.GetPaletteForMode(paletteMode);

            renderer = palette.GetRenderer();

            paletteRedirect     = new PaletteRedirect(palette);
            paletteBackground   = new PaletteBackInheritRedirect(paletteRedirect);
            paletteBackButton   = new PaletteBackInheritRedirect(paletteRedirect);
            paletteBorderButton = new PaletteBorderInheritRedirect(paletteRedirect);

            paletteBackground.Style   = PaletteBackStyle.PanelClient;
            paletteBackButton.Style   = PaletteBackStyle.ButtonStandalone;
            paletteBorderButton.Style = PaletteBorderStyle.ButtonStandalone;

            Refresh();
        }
示例#4
0
        /// <summary>
        /// Constructor
        /// </summary>
        public KryptonOutlookGridGroupBox()
        {
            // To remove flicker we use double buffering for drawing
            SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ResizeRedraw, true);

            InitializeComponent();

            columnsList = new List <OutlookGridGroupBoxColumn>();

            // Cache the current global palette setting
            _palette = KryptonManager.CurrentGlobalPalette;

            // Hook into palette events
            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }

            // (4) We want to be notified whenever the global palette changes
            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            // Create redirection object to the base palette
            _paletteRedirect = new PaletteRedirect(_palette);

            // Create accessor objects for the back, border and content
            // Store the inherit instances
            _paletteBack            = new PaletteBackInheritRedirect(_paletteRedirect);
            _paletteBorder          = new PaletteBorderInheritRedirect(_paletteRedirect);
            _paletteContent         = new PaletteContentInheritRedirect(_paletteRedirect);
            _paletteDataGridView    = new PaletteDataGridViewRedirect(_paletteRedirect, null);
            _paletteDataGridViewAll = new PaletteDataGridViewAll(_paletteDataGridView, null);

            // Create storage that maps onto the inherit instances
            _border = new PaletteBorder(_paletteBorder, null);
            _dragColumnToGroupText = LanguageManager.Instance.GetStringGB("DRAGCOLUMNTOGROUP");

            using (Graphics g = CreateGraphics())
            {
                factorX = g.DpiX > 96 ? (1f * g.DpiX / 96) : 1f;
                factorY = g.DpiY > 96 ? (1f * g.DpiY / 96) : 1f;
            }
        }
示例#5
0
        /// <summary>
        /// Initialize a new instance of the PaletteTripleJustImageRedirect class.
        /// </summary>
        /// <param name="redirect">inheritance redirection instance.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteTripleJustImageRedirect(PaletteRedirect redirect,
                                              PaletteBackStyle backStyle,
                                              PaletteBorderStyle borderStyle,
                                              PaletteContentStyle contentStyle,
                                              NeedPaintHandler needPaint)
        {
            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Store the inherit instances
            _backInherit    = new PaletteBackInheritRedirect(redirect, backStyle);
            _borderInherit  = new PaletteBorderInheritRedirect(redirect, borderStyle);
            _contentInherit = new PaletteContentInheritRedirect(redirect, contentStyle);

            // Create storage that maps onto the inherit instances
            Back    = new PaletteBack(_backInherit, needPaint);
            Border  = new PaletteBorder(_borderInherit, needPaint);
            Content = new PaletteContentJustImage(_contentInherit, needPaint);
        }
示例#6
0
        public KryptonFlowLayoutPanel()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);

            _palette = KryptonManager.CurrentGlobalPalette;

            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }


            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            _paletteRedirect = new PaletteRedirect(_palette);
            _paletteBack     = new PaletteBackInheritRedirect(_paletteRedirect);
            _paletteBorder   = new PaletteBorderInheritRedirect(_paletteRedirect);
            _paletteContent  = new PaletteContentInheritRedirect(_paletteRedirect);
        }
示例#7
0
        void RefreshPalette()
        {
            palette = paletteMode == PaletteMode.Global ? KryptonManager.CurrentGlobalPalette : KryptonManager.GetPaletteForMode(paletteMode);

            renderer = palette.GetRenderer();

            paletteRedirect     = new PaletteRedirect(palette);
            paletteBackground   = new PaletteBackInheritRedirect(paletteRedirect);
            paletteLines        = new PaletteBorderInheritRedirect(paletteRedirect);
            paletteBackButton   = new PaletteBackInheritRedirect(paletteRedirect);
            paletteBorderButton = new PaletteBorderInheritRedirect(paletteRedirect);

            paletteBackground.Style   = PaletteBackStyle.InputControlStandalone;
            paletteLines.Style        = PaletteBorderStyle.GridDataCellList;
            paletteBackButton.Style   = PaletteBackStyle.ButtonListItem;
            paletteBorderButton.Style = PaletteBorderStyle.ButtonListItem;

            Refresh();
        }
        /// <summary>
        /// Initialize a new instance of the PaletteTreeStateRedirect class.
        /// </summary>
        /// <param name="redirect">inheritance redirection instance.</param>
        /// <param name="back">Storage for back values.</param>
        /// <param name="backInherit">inheritance for back values.</param>
        /// <param name="border">Storage for border values.</param>
        /// <param name="borderInherit">inheritance for border values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteTreeStateRedirect(PaletteRedirect redirect,
                                        PaletteBack back,
                                        PaletteBackInheritRedirect backInherit,
                                        PaletteBorder border,
                                        PaletteBorderInheritRedirect borderInherit,
                                        NeedPaintHandler needPaint)
            : base(redirect, back, backInherit, border, borderInherit, needPaint)
        {
            Debug.Assert(redirect != null);

            // Remember the redirect reference
            _redirect = redirect;

            // Create the item redirector
            Node = new PaletteTripleRedirect(redirect,
                                             PaletteBackStyle.ButtonListItem,
                                             PaletteBorderStyle.ButtonListItem,
                                             PaletteContentStyle.ButtonListItem,
                                             needPaint);
        }
        public KryptonToggleSwitchAndroidRenderer()
        {
            if (((_palette != null)))
            {
                _palette.PalettePaint += OnPalettePaint;
            }

            KryptonManager.GlobalPaletteChanged += OnGlobalPaletteChanged;

            _palette = KryptonManager.CurrentGlobalPalette;

            _paletteRedirect = new PaletteRedirect(_palette);

            _paletteBack = new PaletteBackInheritRedirect(_paletteRedirect);

            _paletteBorder = new PaletteBorderInheritRedirect(_paletteRedirect);

            _paletteContent = new PaletteContentInheritRedirect(_paletteRedirect);

            InitialiseColours();
        }
示例#10
0
        /// <summary>
        /// Initialize a new instance of the PaletteDataGridViewTripleRedirect class.
        /// </summary>
        /// <param name="redirect">inheritance redirection instance.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteDataGridViewTripleRedirect(PaletteRedirect redirect,
                                                 PaletteBackStyle backStyle,
                                                 PaletteBorderStyle borderStyle,
                                                 PaletteContentStyle contentStyle,
                                                 NeedPaintHandler needPaint)
        {
            Debug.Assert(redirect != null);

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

            // Store the inherit instances
            _backInherit    = new PaletteBackInheritRedirect(redirect, backStyle);
            _borderInherit  = new PaletteBorderInheritRedirect(redirect, borderStyle);
            _contentInherit = new PaletteContentInheritRedirect(redirect, contentStyle);

            // Create storage that maps onto the inherit instances
            Back    = new PaletteBack(_backInherit, needPaint);
            Border  = new PaletteBorder(_borderInherit, needPaint);
            Content = new PaletteDataGridViewContentCommon(_contentInherit, needPaint);
        }
示例#11
0
        public KryptonKnobControl()
        {
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);


            //Create redirection object to the base palette
            if (((this._palette != null)))
            {
                this._palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(this.OnPalettePaint);
            }
            KryptonManager.GlobalPaletteChanged += new EventHandler(this.OnGlobalPaletteChanged);
            this._palette         = KryptonManager.CurrentGlobalPalette;
            this._paletteRedirect = new PaletteRedirect(this._palette);

            //Create accessor objects for the back, border and content
            m_paletteBack    = new PaletteBackInheritRedirect(_paletteRedirect);
            m_paletteBorder  = new PaletteBorderInheritRedirect(_paletteRedirect);
            m_paletteContent = new PaletteContentInheritRedirect(_paletteRedirect);

            InitColors();

            //This call is required by the Windows Form Designer.
            InitializeComponent();

            this.ImeMode = ImeMode.On;
            this.Name    = "Knob";
            this.Resize += new EventHandler(this.Knob_Resize);
            //this.ValueChanged += new ValueChangedEventHandler(this.ValueChanged);

            DottedPen           = new Pen(getDarkColor(_KnobBorderColour, 40));
            DottedPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            DottedPen.DashCap   = System.Drawing.Drawing2D.DashCap.Round;
            setDimensions();

            InitColors();
        }
        private void Init()
        {
            // double buffering
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            if (!DesignMode)
            {
                this.SetStyle(ControlStyles.UserPaint, true);
                this.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
                this.DrawMode = TabDrawMode.OwnerDrawFixed;
                //this.ItemSize = new Size(0, 1);
                this.Appearance = System.Windows.Forms.TabAppearance.Buttons;
                this.Margin     = new System.Windows.Forms.Padding(0);
            }
            else
            {
                this.SetStyle(ControlStyles.UserPaint, false);
                this.DrawMode   = TabDrawMode.Normal;
                this.SizeMode   = System.Windows.Forms.TabSizeMode.Normal;
                this.ItemSize   = new Size(41, 10);
                this.Appearance = System.Windows.Forms.TabAppearance.Normal;
            }

            _palette = KryptonManager.CurrentGlobalPalette;

            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }

            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            _paletteRedirect = new PaletteRedirect(_palette);
            _paletteBorder   = new PaletteBorderInheritRedirect(_paletteRedirect);

            InitColours();
        }
示例#13
0
        //constructor
        public KryptonPowerComboBox()
        {
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.SetStyle(ControlStyles.EnableNotifyMessage, true);
            UpdateStyles();

            this.ComboBox.DrawMode  = System.Windows.Forms.DrawMode.OwnerDrawFixed;
            this.ComboBox.DrawItem += new DrawItemEventHandler(OnDrawItem);
            this.ForeColor          = this.ComboBox.ForeColor;
            this.Font = this.ComboBox.Font;

            // Cache the current global palette setting
            _palette = KryptonManager.CurrentGlobalPalette;

            // Hook into palette events
            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }

            // We want to be notified whenever the global palette changes
            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            // Create redirection object to the base palette
            _paletteRedirect = new PaletteRedirect(_palette);
            _paletteBack     = new PaletteBackInheritRedirect(_paletteRedirect);
            _paletteBorder   = new PaletteBorderInheritRedirect(_paletteRedirect);
            _paletteContent  = new PaletteContentInheritRedirect(_paletteRedirect);

            InitColours();

            if (_alternateRowColorEnabled)
            {
                this.GridColour = _alternateRowColor;
            }
        }
示例#14
0
        private void RefreshPalette()
        {
            if (this.paletteMode == PaletteMode.Global)
            {
                this.palette = KryptonManager.CurrentGlobalPalette;
            }
            else
            {
                this.palette = KryptonManager.GetPaletteForMode(this.paletteMode);
            }

            this.renderer            = this.palette.GetRenderer();
            this.paletteRedirect     = new PaletteRedirect(this.palette);
            this.paletteBorder       = new PaletteBorderInheritRedirect(this.paletteRedirect);
            this.paletteBack         = new PaletteBackInheritRedirect(this.paletteRedirect);
            this.paletteBorderButton = new PaletteBorderInheritRedirect(this.paletteRedirect);
            this.paletteBackButton   = new PaletteBackInheritRedirect(this.paletteRedirect);

            this.paletteBorder.Style       = PaletteBorderStyle.InputControlStandalone;
            this.paletteBack.Style         = PaletteBackStyle.InputControlStandalone;
            this.paletteBorderButton.Style = PaletteBorderStyle.ButtonInputControl;
            this.paletteBackButton.Style   = PaletteBackStyle.ButtonListItem;
        }
        public KryptonTimeFrame()
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            UpdateStyles();

            // add Palette Handler
            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }

            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            _palette         = KryptonManager.CurrentGlobalPalette;
            _paletteRedirect = new PaletteRedirect(_palette);
            _paletteBack     = new PaletteBackInheritRedirect(_paletteRedirect);
            _paletteBorder   = new PaletteBorderInheritRedirect(_paletteRedirect);
            _paletteContent  = new PaletteContentInheritRedirect(_paletteRedirect);

            InitColors();
        }
        private void RefreshPalette()
        {
            Palette           = KryptonManager.CurrentGlobalPalette;
            Renderer          = Palette.GetRenderer();
            ViewLayoutContext = new ViewLayoutContext(ViewLayoutContextControl, Renderer);

            PaletteRedirect PaletteRedirect = new PaletteRedirect(Palette);

            PaletteTabPageBackground   = new PaletteBackInheritRedirect(PaletteRedirect);
            PaletteTabPageBorder       = new PaletteBorderInheritRedirect(PaletteRedirect);
            PaletteTabButtonBackground = new PaletteBackInheritRedirect(PaletteRedirect);
            PaletteTabButtonBorder     = new PaletteBorderInheritRedirect(PaletteRedirect);

            PaletteTabPageBackground.Style   = PaletteBackStyle.ControlToolTip;
            PaletteTabPageBorder.Style       = PaletteBorderStyle.ButtonNavigatorStack;
            PaletteTabButtonBackground.Style = PaletteBackStyle.ButtonNavigatorStack;
            PaletteTabButtonBorder.Style     = PaletteBorderStyle.ButtonNavigatorMini;

            TabFontBold    = new Font(Palette.GetContentShortTextFont(PaletteContentStyle.ButtonNavigatorStack, PaletteState.Normal), FontStyle.Bold);
            TabFontRegular = new Font(TabFontBold, FontStyle.Regular);
            TabBrush       = new SolidBrush(Palette.GetContentShortTextColor1(PaletteContentStyle.ButtonNavigatorStack, PaletteState.Normal));
            Invalidate();
        }
示例#17
0
        public KryptonTreeViewExt()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();
            this.DrawMode = TreeViewDrawMode.OwnerDrawAll;
            //SetStyle(ControlStyles.UserPaint, true);

            // add Palette Handler
            // Cache the current global palette setting
            _palette = KryptonManager.CurrentGlobalPalette;

            // Hook into palette events
            if (_palette != null)
            {
                _palette.PalettePaint += new EventHandler <PaletteLayoutEventArgs>(OnPalettePaint);
            }

            // We want to be notified whenever the global palette changes
            KryptonManager.GlobalPaletteChanged += new EventHandler(OnGlobalPaletteChanged);

            // Create redirection object to the base palette
            _paletteRedirect = new PaletteRedirect(_palette);

            // Create accessor objects for the back, border and content
            _paletteBack    = new PaletteBackInheritRedirect(_paletteRedirect);
            _paletteBorder  = new PaletteBorderInheritRedirect(_paletteRedirect);
            _paletteContent = new PaletteContentInheritRedirect(_paletteRedirect);

            //vista
            _enableVistaCheckBoxes = Utility.IsVista();
            _enableVistaSigns      = Utility.IsVista();

            InitColors();

            //for image list
            InitializeComponent();
        }
 /// <summary>
 /// Initialize a new instance of the PaletteNavigatorNormabled class.
 /// </summary>
 /// <param name="navigator">Reference to owning navigator.</param>
 /// <param name="redirectNavigator">Inheritence redirection for navigator level.</param>
 /// <param name="redirectNavigatorPage">Inheritence redirection for page level.</param>
 /// <param name="redirectNavigatorHeaderGroup">Inheritence redirection for header groups level.</param>
 /// <param name="redirectNavigatorHeaderPrimary">Inheritence redirection for primary header.</param>
 /// <param name="redirectNavigatorHeaderSecondary">Inheritence redirection for secondary header.</param>
 /// <param name="redirectNavigatorHeaderBar">Inheritence redirection for bar header.</param>
 /// <param name="redirectNavigatorHeaderOverflow">Inheritence redirection for bar header.</param>
 /// <param name="redirectNavigatorCheckButton">Inheritence redirection for check button.</param>
 /// <param name="redirectNavigatorOverflowButton">Inheritence redirection for overflow button.</param>
 /// <param name="redirectNavigatorMiniButton">Inheritence redirection for check button.</param>
 /// <param name="redirectNavigatorBar">Inheritence redirection for bar.</param>
 /// <param name="redirectNavigatorBorderEdge">Inheritence redirection for border edge.</param>
 /// <param name="redirectNavigatorSeparator">Inheritence redirection for separator.</param>
 /// <param name="redirectNavigatorTab">Inheritence redirection for tab.</param>
 /// <param name="redirectNavigatorRibbonTab">Inheritence redirection for ribbon tab.</param>
 /// <param name="redirectNavigatorRibbonGeneral">Inheritence redirection for ribbon general.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteNavigatorRedirect(KryptonNavigator navigator,
                                 PaletteRedirect redirectNavigator,
                                 PaletteRedirect redirectNavigatorPage,
                                 PaletteRedirect redirectNavigatorHeaderGroup,
                                 PaletteRedirect redirectNavigatorHeaderPrimary,
                                 PaletteRedirect redirectNavigatorHeaderSecondary,
                                 PaletteRedirect redirectNavigatorHeaderBar,
                                 PaletteRedirect redirectNavigatorHeaderOverflow,
                                 PaletteRedirect redirectNavigatorCheckButton,
                                 PaletteRedirect redirectNavigatorOverflowButton,
                                 PaletteRedirect redirectNavigatorMiniButton,
                                 PaletteRedirect redirectNavigatorBar,
                                 PaletteRedirect redirectNavigatorBorderEdge,
                                 PaletteRedirect redirectNavigatorSeparator,
                                 PaletteRedirect redirectNavigatorTab,
                                 PaletteRedirect redirectNavigatorRibbonTab,
                                 PaletteRedirect redirectNavigatorRibbonGeneral,
                                 NeedPaintHandler needPaint)
     : base(redirectNavigator, PaletteBackStyle.PanelClient,
            PaletteBorderStyle.ControlClient, needPaint)
 {
     // Create the palette storage
     _palettePageRedirect              = new PalettePageRedirect(redirectNavigatorPage, needPaint);
     _paletteHeaderGroupRedirect       = new PaletteNavigatorHeaderGroupRedirect(redirectNavigatorHeaderGroup, redirectNavigatorHeaderPrimary, redirectNavigatorHeaderSecondary, redirectNavigatorHeaderBar, redirectNavigatorHeaderOverflow, needPaint);
     _paletteCheckButton               = new PaletteTripleRedirect(redirectNavigatorCheckButton, PaletteBackStyle.ButtonStandalone, PaletteBorderStyle.ButtonStandalone, PaletteContentStyle.ButtonStandalone, needPaint);
     _paletteOverflowButton            = new PaletteTripleRedirect(redirectNavigatorOverflowButton, PaletteBackStyle.ButtonNavigatorOverflow, PaletteBorderStyle.ButtonNavigatorOverflow, PaletteContentStyle.ButtonNavigatorOverflow, needPaint);
     _paletteMiniButton                = new PaletteTripleRedirect(redirectNavigatorMiniButton, PaletteBackStyle.ButtonNavigatorMini, PaletteBorderStyle.ButtonNavigatorMini, PaletteContentStyle.ButtonNavigatorMini, needPaint);
     _paletteBarRedirect               = new PaletteBarRedirect(redirectNavigatorBar, needPaint);
     _paletteBorderEdgeInheritRedirect = new PaletteBorderInheritRedirect(redirectNavigatorBorderEdge, PaletteBorderStyle.ControlClient);
     _paletteBorderEdgeRedirect        = new PaletteBorderEdgeRedirect(_paletteBorderEdgeInheritRedirect, needPaint);
     _paletteSeparator     = new PaletteSeparatorPaddingRedirect(redirectNavigatorSeparator, PaletteBackStyle.SeparatorHighInternalProfile, PaletteBorderStyle.SeparatorHighInternalProfile, needPaint);
     _paletteTab           = new PaletteTabTripleRedirect(redirectNavigatorTab, PaletteBackStyle.TabHighProfile, PaletteBorderStyle.TabHighProfile, PaletteContentStyle.TabHighProfile, needPaint);
     _paletteRibbonTab     = new PaletteRibbonTabContentRedirect(redirectNavigatorRibbonTab, needPaint);
     _paletteRibbonGeneral = new PaletteRibbonGeneralNavRedirect(redirectNavigatorRibbonGeneral, needPaint);
     _paletteMetrics       = new PaletteMetrics(navigator, needPaint);
 }