예제 #1
0
        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();
        }
예제 #2
0
            protected override System.Drawing.Size GetSuggestedSize()
            {
                RibbonMenu menu = (RibbonMenu)this.RibbonItems;

                return(menu.TotalSize);
            }