Example #1
0
        /// <summary>
        /// Initializes a new instance of the Ribbon class.
        /// </summary>
        public Ribbon()
        {
            tab_strip = Controls.AddImplicitControl(new TabStrip {
                Dock = DockStyle.Top
            });

            tab_strip.SelectedTabChanged += TabStrip_SelectedTabChanged;

            TabPages = new RibbonTabPageCollection(this, tab_strip);

            Dock = DockStyle.Top;
        }
Example #2
0
        public Ribbon()
        {
            TabPages = new RibbonTabPageCollection(this);

            Dock = DockStyle.Top;

            TabStrip = new TabStrip {
                Dock = DockStyle.Top
            };

            TabStrip.SelectedTabChanged += (o, e) => SetSelectedTab();
            Controls.Add(TabStrip);
        }