protected override System.Drawing.Size GetSuggestedSize() { RibbonGroup group = (RibbonGroup)this.RibbonItems; return new Size(group.GetWidth(group.WidthLevel), 102); }
Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container) { RibbonGroup group = (RibbonGroup)container; return(group.TabPanel.GetGroupBounds(group)); }
protected override void PrepareToOpen() { base.PrepareToOpen(); RibbonGroup group = (RibbonGroup)this.RibbonItems; group.WidthLevel = group.WidthLevelCount - 1; }