private async void AddNewNote() { CourseName courseDialog = new CourseName() { Title = "New Note" }; var result = await courseDialog.ShowAsync(); if (result == ContentDialogResult.Primary) { var item = AddNaviItem(courseDialog.Title.ToString()); item.Tag = "NoteItem"; landingNaviView.MenuItems.Add(item); landingNaviView.SelectedItem = item; lContentFrame.Navigate(typeof(Landing_Views.Assignments), credentials); } }
private async void AddNewCourse() { CourseName courseDialog = new CourseName(); var result = await courseDialog.ShowAsync(); if (result == ContentDialogResult.Primary) { var item = AddNaviItem("Add New Course"); landingNaviView.MenuItems.Add(item); landingNaviView.MenuItems.Add(new NavigationViewItemSeparator()); landingNaviView.MenuItems.Add(new NavigationViewItemHeader().Content = "Notes"); landingNaviView.MenuItems.Add(new NavigationViewItem() { Content = "Add New Note", Tag = "Note" }); landingNaviView.SelectedItem = item; } }