예제 #1
0
 protected override System.Drawing.Size GetSuggestedSize()
 {
     RibbonGroup group = (RibbonGroup)this.RibbonItems;
     return new Size(group.GetWidth(group.WidthLevel), 102);
 }
예제 #2
0
        Rectangle IRibbonItemContainerServices.GetBounds(RibbonItemContainer container)
        {
            RibbonGroup group = (RibbonGroup)container;

            return(group.TabPanel.GetGroupBounds(group));
        }
예제 #3
0
 protected override void PrepareToOpen()
 {
     base.PrepareToOpen();
     RibbonGroup group = (RibbonGroup)this.RibbonItems;
     group.WidthLevel = group.WidthLevelCount - 1;
 }