Example #1
0
        public ProfilePage()
        {
            coreProfile  = new UpperProfileSection();
            navRow       = new ProfileNavRow(this);
            settingsPage = new SettingsPage()
            {
                IsVisible = false,
            };
            instructionsPage = new InstructionsPage()
            {
                IsVisible = false,
            };
            mySubmissionsPage = new MySubmissionsPage();
            likesPage         = new LikesPage()
            {
                IsVisible = false,
            };
            eventsPage = new EventsHistory_Profile()
            {
                IsVisible = false,
            };
            badgesPage = new BadgesPage()
            {
                IsVisible = false,
            };

            // Going the vis/invis route.
            //mainBody = new ContentView();
            //mainBody.Content = MySubmissionsPage;
            //mainBody = MySubmissionsPage.Content;

            buildUI();
        }
        /*
         * HamburgerPage hamburgerPage = new HamburgerPage();
         * public HamburgerPage HamburgerPage {
         *  get { return hamburgerPage; }
         * }*/

        public PlayerPageCenterConsole(PlayerContentPage parent)
        {
            Padding = 10;

            this.parent = parent;
            // purchasesPage = new PurchasesPage();
            //settingsPage = new SettingsPage(); // be careful. Settings is null, but being built late so we have correct user info.
            instructionsPage  = new InstructionsPage();
            mySubmissionsPage = new MySubmissionsPage();
            likesPage         = new LikesPage();
            //hamburgerPage = new HamburgerPage();

            buildUI();
        }