Ejemplo n.º 1
0
        }//RandomString

        //Might be a better way to call this method from app instead of rewriting it for each page
        public static void createHamburgerIcon()
        {
            var menuPage = new MenuPage();

            App.navigationPage = new NavigationPage(new GroupPage {
                Title = Application.Current.Properties["savedGroupName"].ToString()
            });                                                                                                                             //Displays username next to icon
            App.navigationPage.BarBackgroundColor = Color.Red;
            App.navigationPage.BackgroundColor    = Color.Black;
            var rootPage = new RootPage();

            rootPage.Master      = menuPage;
            rootPage.Detail      = App.navigationPage;
            App.Current.MainPage = rootPage;
        }
Ejemplo n.º 2
0
        //Create the ham menu the better way
        public static void createHamburgerIcon(Page page, String title)
        {
            Page newPage = page;

            newPage.Title = title;
            var menuPage = new MenuPage();

            App.navigationPage = new NavigationPage(newPage);
            App.navigationPage.BarBackgroundColor = Color.Red;
            App.navigationPage.BackgroundColor    = Color.Black;
            var rootPage = new RootPage();

            rootPage.Master      = menuPage;
            rootPage.Detail      = App.navigationPage;
            App.Current.MainPage = rootPage;
        }