/// <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 HeaderBar = new PaletteHeaderPaddingRedirect(redirectHeaderBar, PaletteBackStyle.HeaderSecondary, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint); HeaderOverflow = new PaletteHeaderPaddingRedirect(redirectHeaderOverflow, PaletteBackStyle.ButtonNavigatorStack, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, 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 HeaderPrimary = new PaletteTripleMetric(inheritHeaderPrimary, needPaint); HeaderSecondary = new PaletteTripleMetric(inheritHeaderSecondary, needPaint); }
/// <summary> /// Initialize a new instance of the PaletteHeaderGroupRedirect class. /// </summary> /// <param name="redirectHeaderGroup">inheritance redirection for header group.</param> /// <param name="redirectHeaderPrimary">inheritance redirection for primary header.</param> /// <param name="redirectHeaderSecondary">inheritance 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 HeaderPrimary = new PaletteHeaderPaddingRedirect(redirectHeaderPrimary, PaletteBackStyle.HeaderPrimary, PaletteBorderStyle.HeaderPrimary, PaletteContentStyle.HeaderPrimary, needPaint); HeaderSecondary = new PaletteHeaderPaddingRedirect(redirectHeaderSecondary, PaletteBackStyle.HeaderSecondary, PaletteBorderStyle.HeaderSecondary, PaletteContentStyle.HeaderSecondary, needPaint); // Default other values _overlayHeaders = InheritBool.Inherit; }