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

            tab_strip.SelectedTabChanged += TabStrip_SelectedTabChanged;

            TabPages = new TabPageCollection(this, tab_strip);
        }
示例#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);
        }
示例#3
0
 internal TabStripItemCollection(TabStrip owner)
 {
     this.owner = owner;
 }
示例#4
0
 internal TabPageCollection(TabControl tabControl, TabStrip tabStrip)
 {
     tab_control = tabControl;
     tab_strip   = tabStrip;
 }
示例#5
0
 internal TabStripItemCollection(TabStrip tabStrip)
 {
     tab_strip = tabStrip;
 }
示例#6
0
 internal RibbonTabPageCollection(Ribbon owner, TabStrip tabStrip)
 {
     this.owner = owner;
     tab_strip  = tabStrip;
 }
 internal TabPageCollection(TabControl owner, TabStrip tabStrip)
 {
     this.owner = owner;
     tab_strip  = tabStrip;
 }