public RibbonContainer(IRibbonInputCallback callback) { this.callback = callback; this.realTabs = new List <RibbonTabBase>(); this.mostCompactMenu = new RibbonMenu(); this.mostCompactButtonTab = new RibbonButtonTab(); this.mostCompactButtonTab.Container = this; this.mostCompactButtonTab.DropDown = new RibbonDropDownMenu(this) { Menu = this.mostCompactMenu }; this.Tabs = new List <RibbonTabBase>(); this.TabGroups = new List <RibbonTabGroup>(); this.Settings = new RibbonThemaSettings(); this.Settings.Font = SystemFonts.CaptionFont; this.ResourceManager = new RibbonResourceManager(); }
protected override System.Drawing.Size GetSuggestedSize() { RibbonMenu menu = (RibbonMenu)this.RibbonItems; return(menu.TotalSize); }