protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Player = (Models.player)e.Parameter;
     Frame rootFrame = Window.Current.Content as Frame;
     if (rootFrame.CanGoBack)
     {
         SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
             AppViewBackButtonVisibility.Visible;
     }
     else
     {
         SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
             AppViewBackButtonVisibility.Collapsed;
     }
 }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Player = (Models.player)e.Parameter;
            Frame rootFrame = Window.Current.Content as Frame;

            if (rootFrame.CanGoBack)
            {
                SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
                    AppViewBackButtonVisibility.Visible;
            }
            else
            {
                SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
                    AppViewBackButtonVisibility.Collapsed;
            }
        }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         Player = (Models.player)e.Parameter;
     }
     catch
     {
     }
     Frame rootFrame = Window.Current.Content as Frame;
      SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed;
     //if (rootFrame.CanGoBack)
     //{
     //    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
     //        AppViewBackButtonVisibility.Visible;
     //}
     //else
     //{
     //    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
     //        AppViewBackButtonVisibility.Collapsed;
     //}
 }
Ejemplo n.º 4
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            try
            {
                Player = (Models.player)e.Parameter;
            }
            catch
            {
            }
            Frame rootFrame = Window.Current.Content as Frame;

            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed;
            //if (rootFrame.CanGoBack)
            //{
            //    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
            //        AppViewBackButtonVisibility.Visible;
            //}
            //else
            //{
            //    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
            //        AppViewBackButtonVisibility.Collapsed;
            //}
        }