Exemple #1
0
        public static Page GetMainPage()
        {
            var scanPage = new ScanView
            {
                Title = "Scan",
            };

            var messagePage = new ReportView
            {
                Title = "Report"
            };

            var homeView = new HomeView();

            var mainView = new NavigationPage(new TabbedPage { Children = { homeView, scanPage, messagePage } });

            return mainView;
        }
Exemple #2
0
        public static Page GetMainPage()
        {

            var scanPage = new ContentPage
            {
                Title = "Scan",
                Content = new StackLayout
                {
                    Spacing = 20,
                    Padding = 50,
                    VerticalOptions = LayoutOptions.Center,
                    Children = 
                    {
                        new Entry { Placeholder = "Username" },
                        new Entry { Placeholder = "Password", IsPassword = true },
                        new Button 
                        {
                            Text = "Login",
                            TextColor = Color.Black,
                            BackgroundColor = Color.FromHex("77D065") 
                        }
                    }
                }
            };

            var messagePage = new ReportView
            {
                Title = "Report"
            };

            var homeView = new HomeView();


            var mainView = new NavigationPage(new TabbedPage { Children = { homeView, scanPage, messagePage } });

            return mainView;
        }