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"); } }