private void NavigationView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { string item = ((NavigationViewItem)args.SelectedItem).Tag as string; if (item == "StudentView") { StudentView student = new StudentView(); FrameMain.Navigate(student.GetType()); } else if (item == "HomeView") { HomeView home = new HomeView(); FrameMain.Navigate(home.GetType()); } else if (item == "ScoreView") { ScoreView score = new ScoreView(); FrameMain.Navigate(score.GetType()); } }