Exemplo n.º 1
0
        private static void TabsChanged(BindableObject bindable, object oldValue, object newValue)
        {
            TabView tabView = (TabView)bindable;
            IEnumerable <TabPage> oldPages = (IEnumerable <TabPage>)oldValue;
            IEnumerable <TabPage> newPages = (IEnumerable <TabPage>)newValue;

            tabView.CreateTabButtons(newPages);
        }
Exemplo n.º 2
0
        private static void ButtonBorderColourChanged(BindableObject bindable, object oldValue, object newValue)
        {
            TabView tabView   = (TabView)bindable;
            Color   oldColour = (Color)oldValue;
            Color   newColor  = (Color)newValue;

            foreach (TabButton curButton in tabView._buttonPageLinks.Keys)
            {
                curButton.ButtonBorderColour = newColor;
            }
        }
Exemplo n.º 3
0
        private static void SelectedTabChanged(BindableObject bindable, object oldValue, object newValue)
        {
            TabView tabView = (TabView)bindable;
            String  oldTab  = (String)oldValue;
            String  newTab  = (String)newValue;

            foreach (TabButton curButton in tabView._buttonPageLinks.Keys)
            {
                if (curButton.Text == newTab)
                {
                    curButton.SimulatedClick();
                    break;
                }
            }
        }