async void Save_Clicked(object sender, EventArgs e) { ContactsViewModel viewModel = (ContactsViewModel)Application.Current.Resources["ContactsViewModel"]; viewModel.add(Contacts); await Navigation.PopAsync(); }