Redirect storage for headers within a HeaderGroup state.
Inheritance: PaletteHeaderButtonRedirect
        /// <summary>
        /// Initialize a new instance of the PaletteNavigatorHeaderGroup class.
        /// </summary>
        /// <param name="inheritHeaderGroup">Source for inheriting palette defaulted values.</param>
        /// <param name="inheritHeaderPrimary">Source for inheriting primary header defaulted values.</param>
        /// <param name="inheritHeaderSecondary">Source for inheriting secondary header defaulted values.</param>
        /// <param name="inheritHeaderBar">Source for inheriting bar header defaulted values.</param>
        /// <param name="inheritHeaderOverflow">Source for inheriting overflow header defaulted values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteNavigatorHeaderGroup(PaletteHeaderGroupRedirect inheritHeaderGroup,
                                           PaletteHeaderPaddingRedirect inheritHeaderPrimary,
                                           PaletteHeaderPaddingRedirect inheritHeaderSecondary,
                                           PaletteHeaderPaddingRedirect inheritHeaderBar,
                                           PaletteHeaderPaddingRedirect inheritHeaderOverflow,
                                           NeedPaintHandler needPaint)
            : base(inheritHeaderGroup, inheritHeaderPrimary,
                   inheritHeaderSecondary, needPaint)
        {
            Debug.Assert(inheritHeaderBar != null);

            // Create the palette storage
            _paletteHeaderBar = new PaletteTripleMetric(inheritHeaderBar, needPaint);
            _paletteHeaderOverflow = new PaletteTripleMetric(inheritHeaderOverflow, needPaint);
        }
        /// <summary>
        /// Initialize a new instance of the PaletteNavigatorHeaderGroupRedirect class.
        /// </summary>
        /// <param name="redirectHeaderGroup">Inheritence redirection for header group.</param>
        /// <param name="redirectHeaderPrimary">Inheritence redirection for primary header.</param>
        /// <param name="redirectHeaderSecondary">Inheritence redirection for secondary header.</param>
        /// <param name="redirectHeaderBar">Inheritence redirection for bar header.</param>
        /// <param name="redirectHeaderOverflow">Inheritence redirection for overflow header.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteNavigatorHeaderGroupRedirect(PaletteRedirect redirectHeaderGroup,
                                                   PaletteRedirect redirectHeaderPrimary,
                                                   PaletteRedirect redirectHeaderSecondary,
                                                   PaletteRedirect redirectHeaderBar,
                                                   PaletteRedirect redirectHeaderOverflow,
                                                   NeedPaintHandler needPaint)
            : base(redirectHeaderGroup, redirectHeaderPrimary,
                   redirectHeaderSecondary, needPaint)
        {
            Debug.Assert(redirectHeaderBar != null);
            Debug.Assert(redirectHeaderOverflow != null);

            // Create the palette storage
            _paletteHeaderBar = new PaletteHeaderPaddingRedirect(redirectHeaderBar, PaletteBackStyle.HeaderSecondary, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint);
            _paletteHeaderOverflow = new PaletteHeaderPaddingRedirect(redirectHeaderOverflow, PaletteBackStyle.ButtonNavigatorStack, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize a new instance of the PaletteHeaderGroup class.
        /// </summary>
        /// <param name="inheritHeaderGroup">Source for inheriting palette defaulted values.</param>
        /// <param name="inheritHeaderPrimary">Source for inheriting primary header defaulted values.</param>
        /// <param name="inheritHeaderSecondary">Source for inheriting secondary header defaulted values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteHeaderGroup(PaletteHeaderGroupRedirect inheritHeaderGroup,
                                  PaletteHeaderPaddingRedirect inheritHeaderPrimary,
                                  PaletteHeaderPaddingRedirect inheritHeaderSecondary,
                                  NeedPaintHandler needPaint)
            : base(inheritHeaderGroup, needPaint)
        {
            Debug.Assert(inheritHeaderGroup != null);
            Debug.Assert(inheritHeaderPrimary != null);
            Debug.Assert(inheritHeaderSecondary != null);

            // Remember the inheritance
            _inherit = inheritHeaderGroup;

            // Create the palette storage
            HeaderPrimary   = new PaletteTripleMetric(inheritHeaderPrimary, needPaint);
            HeaderSecondary = new PaletteTripleMetric(inheritHeaderSecondary, needPaint);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initialize a new instance of the PaletteHeaderGroup class.
        /// </summary>
        /// <param name="inheritHeaderGroup">Source for inheriting palette defaulted values.</param>
        /// <param name="inheritHeaderPrimary">Source for inheriting primary header defaulted values.</param>
        /// <param name="inheritHeaderSecondary">Source for inheriting secondary header defaulted values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteHeaderGroup(PaletteHeaderGroupRedirect inheritHeaderGroup,
                                  PaletteHeaderPaddingRedirect inheritHeaderPrimary,
                                  PaletteHeaderPaddingRedirect inheritHeaderSecondary,
                                  NeedPaintHandler needPaint)
            : base(inheritHeaderGroup, needPaint)
        {
            Debug.Assert(inheritHeaderGroup != null);
            Debug.Assert(inheritHeaderPrimary != null);
            Debug.Assert(inheritHeaderSecondary != null);

            // Remember the inheritance
            _inherit = inheritHeaderGroup;

            // Create the palette storage
            _paletteHeaderPrimary = new PaletteTripleMetric(inheritHeaderPrimary, needPaint);
            _paletteHeaderSecondary = new PaletteTripleMetric(inheritHeaderSecondary, needPaint);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Initialize a new instance of the PaletteHeaderGroupRedirect class.
        /// </summary>
        /// <param name="redirectHeaderGroup">Inheritence redirection for header group.</param>
        /// <param name="redirectHeaderPrimary">Inheritence redirection for primary header.</param>
        /// <param name="redirectHeaderSecondary">Inheritence redirection for secondary header.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteHeaderGroupRedirect(PaletteRedirect redirectHeaderGroup,
                                          PaletteRedirect redirectHeaderPrimary,
                                          PaletteRedirect redirectHeaderSecondary,
                                          NeedPaintHandler needPaint)
            : base(redirectHeaderGroup, PaletteBackStyle.ControlClient,
                   PaletteBorderStyle.ControlClient, needPaint)
        {
            Debug.Assert(redirectHeaderGroup != null);
            Debug.Assert(redirectHeaderSecondary != null);
            Debug.Assert(redirectHeaderPrimary != null);

            // Remember the redirect reference
            _redirect = redirectHeaderGroup;

            // Create the palette storage
            _paletteHeaderPrimary   = new PaletteHeaderPaddingRedirect(redirectHeaderPrimary, PaletteBackStyle.HeaderPrimary, PaletteBorderStyle.HeaderPrimary, PaletteContentStyle.HeaderPrimary, needPaint);
            _paletteHeaderSecondary = new PaletteHeaderPaddingRedirect(redirectHeaderSecondary, PaletteBackStyle.HeaderSecondary, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint);

            // Default other values
            _overlayHeaders = InheritBool.Inherit;
        }
        /// <summary>
        /// Initialize a new instance of the PaletteHeaderGroupRedirect class.
        /// </summary>
        /// <param name="redirectHeaderGroup">Inheritence redirection for header group.</param>
        /// <param name="redirectHeaderPrimary">Inheritence redirection for primary header.</param>
        /// <param name="redirectHeaderSecondary">Inheritence redirection for secondary header.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public PaletteHeaderGroupRedirect(PaletteRedirect redirectHeaderGroup,
                                          PaletteRedirect redirectHeaderPrimary,
                                          PaletteRedirect redirectHeaderSecondary,
                                          NeedPaintHandler needPaint)
            : base(redirectHeaderGroup, PaletteBackStyle.ControlClient, 
                   PaletteBorderStyle.ControlClient, needPaint)
        {
            Debug.Assert(redirectHeaderGroup != null);
            Debug.Assert(redirectHeaderSecondary != null);
            Debug.Assert(redirectHeaderPrimary != null);

            // Remember the redirect reference
            _redirect = redirectHeaderGroup;

            // Create the palette storage
            _paletteHeaderPrimary = new PaletteHeaderPaddingRedirect(redirectHeaderPrimary, PaletteBackStyle.HeaderPrimary, PaletteBorderStyle.HeaderPrimary, PaletteContentStyle.HeaderPrimary, needPaint);
            _paletteHeaderSecondary = new PaletteHeaderPaddingRedirect(redirectHeaderSecondary, PaletteBackStyle.HeaderSecondary, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint);

            // Default other values
            _overlayHeaders = InheritBool.Inherit;
        }