Redirect storage for HeaderGroup states.
Inheritance: PaletteDoubleRedirect, IPaletteMetric
        /// <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);
        }
Exemple #2
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);
        }
        /// <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);
        }