Implement storage for tab specific palette border, background and content.
Inheritance: Storage, IPaletteTriple
Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteTabButton class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="backStyle">Background style.</param>
 /// <param name="borderStyle">Border style.</param>
 /// <param name="contentStyle">Content style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteTabButton(PaletteRedirect redirect,
                                PaletteBackStyle backStyle,
                                PaletteBorderStyle borderStyle,
                                PaletteContentStyle contentStyle,
                                NeedPaintHandler needPaint)
 {
     // Create the storage objects
     OverrideFocus = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     StateCommon   = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     StateDisabled = new PaletteTabTriple(StateCommon, needPaint);
     StateNormal   = new PaletteTabTriple(StateCommon, needPaint);
     StateTracking = new PaletteTabTriple(StateCommon, needPaint);
     StatePressed  = new PaletteTabTriple(StateCommon, needPaint);
     StateSelected = new PaletteTabTriple(StateCommon, needPaint);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteTabButton class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="backStyle">Background style.</param>
 /// <param name="borderStyle">Border style.</param>
 /// <param name="contentStyle">Content style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteTabButton(PaletteRedirect redirect,
                                PaletteBackStyle backStyle,
                                PaletteBorderStyle borderStyle,
                                PaletteContentStyle contentStyle,
                                NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateFocus = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     _stateCommon = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
     _stateDisabled = new PaletteTabTriple(_stateCommon, needPaint);
     _stateNormal = new PaletteTabTriple(_stateCommon, needPaint);
     _stateTracking = new PaletteTabTriple(_stateCommon, needPaint);
     _statePressed = new PaletteTabTriple(_stateCommon, needPaint);
     _stateSelected = new PaletteTabTriple(_stateCommon, needPaint);
 }