/// <summary> /// Initialize a new instance of the ViewDrawRibbonContextTitle class. /// </summary> /// <param name="ribbon">Source ribbon control.</param> /// <param name="inherit">Source for inheriting the ribbon bacgkground colors.</param> public ViewDrawRibbonContextTitle(KryptonRibbon ribbon, IPaletteRibbonBack inherit) { Debug.Assert(ribbon != null); Debug.Assert(inherit != null); // Remember incoming references _inherit = inherit; _ribbon = ribbon; // Use a class to convert from ribbon tab to content interface _contentProvider = new ContextToContent(ribbon.StateCommon.RibbonGeneral); }