Ejemplo n.º 1
0
 public static void NavigateBasedOnWindowsLayoutChange(WindowLayoutEventArgs args)
 {
     if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.Snapped)
     {
         NavigationService.Navigate("HomeViewSnapped");
     }
     else if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.FullScreenPortrait)
     {
         NavigationService.Navigate("HomeViewPortrait");
     }
     else if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.FullScreenLandscape)
     {
         NavigationService.Navigate("HomeViewLandscape");
     }
 }
Ejemplo n.º 2
0
 public static void NavigateBasedOnWindowsLayoutChange(WindowLayoutEventArgs args)
 {
     if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.Snapped)
     {
         NavigationService.Navigate("HomeViewSnapped");
     }
     else if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.FullScreenPortrait)
     {
         NavigationService.Navigate("HomeViewPortrait");
     }
     else if (args.ViewState == Windows.UI.ViewManagement.ApplicationViewState.FullScreenLandscape)
     {
         NavigationService.Navigate("HomeViewLandscape");
     }
 }