Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 public TabRemovedEventArgs(TabButton tabRemoved, TabBar sender)
 {
     this._tabRemoved = tabRemoved;
     this._sender = sender;
 }
Example #4
0
 public TabAddedEventArgs(TabButton tabAdded, TabBar sender, int index)
 {
     this._tabAdded = tabAdded;
     this._sender = sender;
     this._index = index;
 }
Example #5
0
 public TabRemovedEventArgs(TabButton tabRemoved, TabBar sender)
 {
     this._tabRemoved = tabRemoved;
     this._sender     = sender;
 }
Example #6
0
 public TabAddedEventArgs(TabButton tabAdded, TabBar sender, int index)
 {
     this._tabAdded = tabAdded;
     this._sender   = sender;
     this._index    = index;
 }