Exemplo n.º 1
0
        public void switchToSubmitView()
        {
            // activeCameraCategory is still used!!!

            /* if (activeCameraCategory != null) {
             *  submitView.setChallengeName(activeCameraCategory.description);
             * } */
            //Content = submitView.Content;
            selectionView.IsVisible         = false;
            submitView.IsVisible            = true;
            createView.IsVisible            = false;
            eventView.IsVisible             = false;
            eventCategoryImgsView.IsVisible = false;

            // activate the back button on the page header.
            MasterPage mp = ((MasterPage)Application.Current.MainPage);

            mp.setHeaderBackCaretDelegate(new BackButtonDelegate(submitView.OnBackPressed));
        }
Exemplo n.º 2
0
        public void setHeaderBackCaretDelegate(BackButtonDelegate backDelegate)
        {
            MasterPage mp = ((MasterPage)Application.Current.MainPage);

            mp.setHeaderBackCaretDelegate(backDelegate);
        }