Exemplo n.º 1
0
		public TabView AddTab(string tabText, View tabChild)
		{
			var ret = new TabView(ParentGeeUI, this, new Vector2(AllTabsWidth, 0)) { TabText = tabText };
			ParentView.Value.Children.Add(tabChild);
			if (ActiveTabView == null)
				TabClicked(ret);
			else 
				TabClicked(ActiveTabView);
			return ret;
		}
Exemplo n.º 2
0
		internal void TabClicked(TabView child)
		{
			foreach (TabView tab in Children)
			{
				tab.Selected.Value = false;
			}
			child.Selected.Value = true;
			var host = (TabHost) ParentView;
			host.TabClicked(Children.IndexOf(child));
		}
Exemplo n.º 3
0
 public TabView AddTab(string tabText, View tabChild)
 {
     var ret = new TabView(this, new Vector2(AllTabsWidth, 0), TabFont) { TabText = tabText };
     ParentView.AddChild(tabChild);
     if (ActiveTabView == null)
         TabClicked(ret);
     else 
         TabClicked(ActiveTabView);
     return ret;
 }
Exemplo n.º 4
0
        internal void TabClicked(TabView child)
        {
            foreach (TabView tab in Children)
            {
                tab.Selected.Value = false;
            }
            child.Selected.Value = true;
            var host = (TabHost)ParentView;

            host.TabClicked(Children.IndexOf(child));
        }
Exemplo n.º 5
0
        public TabView AddTab(string tabText, View tabChild)
        {
            var ret = new TabView(ParentGeeUI, this, new Vector2(AllTabsWidth, 0))
            {
                TabText = tabText
            };

            ParentView.Value.Children.Add(tabChild);
            if (ActiveTabView == null)
            {
                TabClicked(ret);
            }
            else
            {
                TabClicked(ActiveTabView);
            }
            return(ret);
        }
Exemplo n.º 6
0
        internal View TabViewToView(TabView v)
        {
            int index = TabContainerView.Children.IndexOf(v) + 1;

            return(index >= Children.Length ? null : Children[index]);
        }
Exemplo n.º 7
0
		internal View TabViewToView(TabView v)
		{
			int index = TabContainerView.Children.IndexOf(v) + 1;
			return index >= Children.Length ? null : Children[index];
		}