private async void DoNavigation() { switch (SelectedMenuItem.TargetPage) { case "AddChildPage": await NavService.GotoPageAsync(NavigationService.AvailablePages.AddChildPage); SelectedMenuItem = Filler; break; case "VaccineInfoPage": await NavService.GotoPageAsync(NavigationService.AvailablePages.VaccineInfoPage); SelectedMenuItem = Filler; break; case "MainPage": await NavService.GotoPageAsync(NavigationService.AvailablePages.MainPage); break; case "SettingsPage": await NavService.GotoPageAsync(NavigationService.AvailablePages.SettingsPage); SelectedMenuItem = Filler; break; case "HistorikPage": await NavService.GotoPageAsync(NavigationService.AvailablePages.HistorikPage); SelectedMenuItem = Filler; break; } }
//ItemSelect method private async void ItemSelectedMethod() { if (VacItemSelected != null) { await NavService.GotoPageAsync(NavigationService.AvailablePages.VaccineInfoPage); VacItemSelected = null; } }