private void OnNavigated(object sender, NavigationEventArgs e) { IsBackEnabled = NavigationService.CanGoBack; var selectedItem = NavigationViewService.GetSelectedItem(e.SourcePageType); if (selectedItem != null) { Selected = selectedItem; } }
private void OnNavigated(object sender, NavigationEventArgs e) { IsBackEnabled = NavigationService.CanGoBack; //if (e.SourcePageType == typeof(SettingsPage)) //{ // Selected = NavigationViewService.SettingsItem; // return; //} var selectedItem = NavigationViewService.GetSelectedItem(e.SourcePageType); if (selectedItem != null) { Selected = selectedItem; } }