public void SetTabBar(TabBar tabBar) { if (_tabBar == null) { _tabBar = new TabBar(); } this.HideTabs = true; foreach (TabPage page in this.TabPages) { TabButton button = new TabButton(); button.Text = page.Text; button.Tag = page.Tag; _tabBar.AddTab(button, false); } _tabBar.SelectedItemChanged += TabBarSelectedItemChanged; }
public void SetTabBar(TabBar tabBar) { if(_tabBar == null) { _tabBar = new TabBar(); } this.HideTabs = true; foreach(TabPage page in this.TabPages) { TabButton button = new TabButton(); button.Text = page.Text; button.Tag = page.Tag; _tabBar.AddTab(button,false); } _tabBar.SelectedItemChanged += TabBarSelectedItemChanged; }
public TabRemovedEventArgs(TabButton tabRemoved, TabBar sender) { this._tabRemoved = tabRemoved; this._sender = sender; }
public TabAddedEventArgs(TabButton tabAdded, TabBar sender, int index) { this._tabAdded = tabAdded; this._sender = sender; this._index = index; }