Implement storage for page appearance.
Inheritance: ComponentFactory.Krypton.Toolkit.PaletteDouble
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 /// <param name="inheritNavigator">Source for inheriting.</param>
 public void SetInherit(PaletteNavigator inheritNavigator)
 {
     // Setup inheritance references for storage objects
     base.SetInherit(inheritNavigator);
     PalettePage.SetInherit(inheritNavigator.PalettePage);
     HeaderGroup.SetInherit(inheritNavigator.HeaderGroup);
     CheckButton.SetInherit(inheritNavigator.CheckButton);
     OverflowButton.SetInherit(inheritNavigator.OverflowButton);
     MiniButton.SetInherit(inheritNavigator.MiniButton);
     BorderEdge.SetInherit(inheritNavigator.BorderEdge);
     Separator.SetInherit(inheritNavigator.Separator);
     Tab.SetInherit(inheritNavigator.Tab);
     RibbonTab.SetInherit(inheritNavigator.RibbonTab.TabDraw, inheritNavigator.RibbonTab.TabDraw, inheritNavigator.RibbonTab.Content);
 }
 /// <summary>
 /// Initialize a new instance of the PaletteNavigatorNormabled class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteNavigator(PaletteNavigatorRedirect redirect,
                         NeedPaintHandler needPaint)
     : base(redirect, needPaint)
 {
     // Create the palette storage
     PalettePage    = new PalettePage(redirect.PalettePage, needPaint);
     HeaderGroup    = new PaletteNavigatorHeaderGroup(redirect.HeaderGroup, redirect.HeaderGroup.HeaderPrimary, redirect.HeaderGroup.HeaderSecondary, redirect.HeaderGroup.HeaderBar, redirect.HeaderGroup.HeaderOverflow, needPaint);
     CheckButton    = new PaletteTriple(redirect.CheckButton, needPaint);
     OverflowButton = new PaletteTriple(redirect.OverflowButton, needPaint);
     MiniButton     = new PaletteTriple(redirect.MiniButton, needPaint);
     BorderEdge     = new PaletteBorderEdge(redirect.BorderEdge, needPaint);
     Separator      = new PaletteSeparatorPadding(redirect.Separator, redirect.Separator, needPaint);
     Tab            = new PaletteTabTriple(redirect.Tab, needPaint);
     RibbonTab      = new PaletteRibbonTabContent(redirect.RibbonTab.TabDraw, redirect.RibbonTab.TabDraw, redirect.RibbonTab.Content, needPaint);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialize a new instance of the PaletteNavigatorNormabled class.
 /// </summary>
 /// <param name="redirect">Inheritence redirection instance.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public PaletteNavigator(PaletteNavigatorRedirect redirect,
                         NeedPaintHandler needPaint)
     : base(redirect, needPaint)
 {
     // Create the palette storage
     _palettePage = new PalettePage(redirect.PalettePage, needPaint);
     _paletteHeaderGroup = new PaletteNavigatorHeaderGroup(redirect.HeaderGroup, redirect.HeaderGroup.HeaderPrimary, redirect.HeaderGroup.HeaderSecondary, redirect.HeaderGroup.HeaderBar, redirect.HeaderGroup.HeaderOverflow, needPaint);
     _paletteCheckButton = new PaletteTriple(redirect.CheckButton, needPaint);
     _paletteOverflowButton = new PaletteTriple(redirect.OverflowButton, needPaint);
     _paletteMiniButton = new PaletteTriple(redirect.MiniButton, needPaint);
     _paletteBorderEdge = new PaletteBorderEdge(redirect.BorderEdge, needPaint);
     _paletteSeparator = new PaletteSeparatorPadding(redirect.Separator, redirect.Separator, needPaint);
     _paletteTab = new PaletteTabTriple(redirect.Tab, needPaint);
     _paletteRibbonTab = new PaletteRibbonTabContent(redirect.RibbonTab.TabDraw, redirect.RibbonTab.TabDraw, redirect.RibbonTab.Content, needPaint);
 }