private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e) { Contact selectedContact = (Contact)e.SelectedItem; Contact_info contact_info = new Contact_info(); contact_info.BindingContext = selectedContact; await Navigation.PushAsync(contact_info); }
private async void SaveContact(object sender, EventArgs e) { var contact = (Contact)BindingContext; if (!String.IsNullOrEmpty(contact.Name)) { App.Database.SaveItem(contact); } Contact_info contact_info = new Contact_info(); contact_info.BindingContext = contact; await Navigation.PushAsync(contact_info); }