Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Tabbedpage at bottom of the screen

$
0
0

Is it possible to set the TabbedPage at the bottom for default.
Left is Android, and I want it like the middle (iOS), I've searched for this but with no succes.

The class looks like this;

public class MainPageCS : TabbedPage
    {
        private NavigationPage mainPage;
        private NavigationPage info;
        private NavigationPage contact;

        private Color barBackGroundColor;
        private Color textColor;

        public MainPageCS ()
        {
            barBackGroundColor = new Color ();
            textColor = new Color ();

            barBackGroundColor = Color.FromRgb (251, 149, 4);
            textColor = Color.White;

            mainPage = new NavigationPage (new MainPage ());
            mainPage.BarBackgroundColor = barBackGroundColor;
            mainPage.BarTextColor = textColor;
            mainPage.Title = "Startpagina";
            mainPage.Icon = "menu.png";
            mainPage.BackgroundColor = Color.White;

            info = new NavigationPage (new InfoPage());
            info.BarBackgroundColor = barBackGroundColor;
            info.BarTextColor = textColor;
            info.Title = "Info";
            info.Icon = "info.png";
            info.BackgroundColor = Color.White;

            Children.Add (mainPage);
            Children.Add (info);
        }
    }

There will be 2 items in the tabbedpage, and the page from the first item that is added ( in this case mainPage ) will be loaded.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>