/// <summary> /// Событие навигации AppFrame. /// </summary> private void frame_Navigated(object sender, NavigationEventArgs e) { // Показывает или скрывает кнопку Back. if (AppFrame.BackStack.Count > 0) { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; } else { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; } string pageKey = e.SourcePageType.Name; SplitViewItem item = SplitViewItems.FirstOrDefault(x => x.Key == pageKey); listView.SelectedIndex = SplitViewItems.IndexOf(item); }
public void ChangeSelectedItem(SplitViewItem splitViewItem) { m_SelectedItem = splitViewItem; RaisePropertyChanged(() => SelectedItem); }