private async void SelectedAction(object sender) { var frame = sender as Frame; await frame.FadeTo(0.5, 150); await frame.FadeTo(1, 50); string name = frame.ClassId; ContentPage nextpage; switch (name) { case "Pets": nextpage = new PetsView(); break; case "New": nextpage = new PetForm(); break; case "Map": List <PetModel> pets = await App.PetDatabase.GetAllPetsAsync(); nextpage = new PetsMap(pets); break; default: nextpage = new PetForm(); break; } masterDetailPage.IsPresented = false; masterDetailPage.Detail = new NavigationPage(nextpage); }
private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var petView = new PetsView(_dataContext); petView.ShowDialog(); }