private void NaviViewMain_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { if (FirstClick) { FirstClick = false; FrameMain.Navigate(typeof(PageZajiao)); FrameMain.Navigate(typeof(PageParent)); if (NaviViewItemZajiao == sender.SelectedItem) { FrameMain.GoBack(); } } else { if (sender.SelectedItem == CurrentItem) { return; } if (NaviViewItemZajiao == sender.SelectedItem) { FrameMain.GoBack(); } if (NaviViewItemParent == sender.SelectedItem) { FrameMain.GoForward(); } } CurrentItem = (NavigationViewItem)sender.SelectedItem; }