/// <summary> /// Initialize a new instance of the ViewDrawRibbonKeyTip class. /// </summary> /// <param name="keyTipInfo">Key tip information to display.</param> /// <param name="paletteBack">Background palette for appearance.</param> /// <param name="paletteBorder">Border palette for appearance.</param> /// <param name="paletteContent">Content palette for appearance.</param> public ViewDrawRibbonKeyTip(KeyTipInfo keyTipInfo, IPaletteBack paletteBack, IPaletteBorder paletteBorder, IPaletteContent paletteContent) : base(paletteBack, paletteBorder) { _keyTipInfo = keyTipInfo; // Create view for the key tip text _drawContent = new ViewDrawContent(paletteContent, this, VisualOrientation.Top); // Add content as filler for ourself Add(_drawContent, ViewDockStyle.Fill); }