/// <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); }
/// <summary> /// Initialize a new instance of the PaletteNavigatorNormabled class. /// </summary> /// <param name="navigator">Reference to owning navigator.</param> /// <param name="redirectNavigator">Inheritence redirection for navigator level.</param> /// <param name="redirectNavigatorPage">Inheritence redirection for page level.</param> /// <param name="redirectNavigatorHeaderGroup">Inheritence redirection for header groups level.</param> /// <param name="redirectNavigatorHeaderPrimary">Inheritence redirection for primary header.</param> /// <param name="redirectNavigatorHeaderSecondary">Inheritence redirection for secondary header.</param> /// <param name="redirectNavigatorHeaderBar">Inheritence redirection for bar header.</param> /// <param name="redirectNavigatorHeaderOverflow">Inheritence redirection for bar header.</param> /// <param name="redirectNavigatorCheckButton">Inheritence redirection for check button.</param> /// <param name="redirectNavigatorOverflowButton">Inheritence redirection for overflow button.</param> /// <param name="redirectNavigatorMiniButton">Inheritence redirection for check button.</param> /// <param name="redirectNavigatorBar">Inheritence redirection for bar.</param> /// <param name="redirectNavigatorBorderEdge">Inheritence redirection for border edge.</param> /// <param name="redirectNavigatorSeparator">Inheritence redirection for separator.</param> /// <param name="redirectNavigatorTab">Inheritence redirection for tab.</param> /// <param name="redirectNavigatorRibbonTab">Inheritence redirection for ribbon tab.</param> /// <param name="redirectNavigatorRibbonGeneral">Inheritence redirection for ribbon general.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> public PaletteNavigatorRedirect(KryptonNavigator navigator, PaletteRedirect redirectNavigator, PaletteRedirect redirectNavigatorPage, PaletteRedirect redirectNavigatorHeaderGroup, PaletteRedirect redirectNavigatorHeaderPrimary, PaletteRedirect redirectNavigatorHeaderSecondary, PaletteRedirect redirectNavigatorHeaderBar, PaletteRedirect redirectNavigatorHeaderOverflow, PaletteRedirect redirectNavigatorCheckButton, PaletteRedirect redirectNavigatorOverflowButton, PaletteRedirect redirectNavigatorMiniButton, PaletteRedirect redirectNavigatorBar, PaletteRedirect redirectNavigatorBorderEdge, PaletteRedirect redirectNavigatorSeparator, PaletteRedirect redirectNavigatorTab, PaletteRedirect redirectNavigatorRibbonTab, PaletteRedirect redirectNavigatorRibbonGeneral, NeedPaintHandler needPaint) : base(redirectNavigator, PaletteBackStyle.PanelClient, PaletteBorderStyle.ControlClient, needPaint) { // Create the palette storage _palettePageRedirect = new PalettePageRedirect(redirectNavigatorPage, needPaint); _paletteHeaderGroupRedirect = new PaletteNavigatorHeaderGroupRedirect(redirectNavigatorHeaderGroup, redirectNavigatorHeaderPrimary, redirectNavigatorHeaderSecondary, redirectNavigatorHeaderBar, redirectNavigatorHeaderOverflow, needPaint); _paletteCheckButton = new PaletteTripleRedirect(redirectNavigatorCheckButton, PaletteBackStyle.ButtonStandalone, PaletteBorderStyle.ButtonStandalone, PaletteContentStyle.ButtonStandalone, needPaint); _paletteOverflowButton = new PaletteTripleRedirect(redirectNavigatorOverflowButton, PaletteBackStyle.ButtonNavigatorOverflow, PaletteBorderStyle.ButtonNavigatorOverflow, PaletteContentStyle.ButtonNavigatorOverflow, needPaint); _paletteMiniButton = new PaletteTripleRedirect(redirectNavigatorMiniButton, PaletteBackStyle.ButtonNavigatorMini, PaletteBorderStyle.ButtonNavigatorMini, PaletteContentStyle.ButtonNavigatorMini, needPaint); _paletteBarRedirect = new PaletteBarRedirect(redirectNavigatorBar, needPaint); _paletteBorderEdgeInheritRedirect = new PaletteBorderInheritRedirect(redirectNavigatorBorderEdge, PaletteBorderStyle.ControlClient); _paletteBorderEdgeRedirect = new PaletteBorderEdgeRedirect(_paletteBorderEdgeInheritRedirect, needPaint); _paletteSeparator = new PaletteSeparatorPaddingRedirect(redirectNavigatorSeparator, PaletteBackStyle.SeparatorHighInternalProfile, PaletteBorderStyle.SeparatorHighInternalProfile, needPaint); _paletteTab = new PaletteTabTripleRedirect(redirectNavigatorTab, PaletteBackStyle.TabHighProfile, PaletteBorderStyle.TabHighProfile, PaletteContentStyle.TabHighProfile, needPaint); _paletteRibbonTab = new PaletteRibbonTabContentRedirect(redirectNavigatorRibbonTab, needPaint); _paletteRibbonGeneral = new PaletteRibbonGeneralNavRedirect(redirectNavigatorRibbonGeneral, needPaint); _paletteMetrics = new PaletteMetrics(navigator, needPaint); }