コード例 #1
0
        private void OnNavigated(object sender, NavigationEventArgs e)
        {
            IsBackEnabled = NavigationService.CanGoBack;
            var selectedItem = NavigationViewService.GetSelectedItem(e.SourcePageType);

            if (selectedItem != null)
            {
                Selected = selectedItem;
            }
        }
コード例 #2
0
        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;
            }
        }