private async void CreateCarOwner(object sender, EventArgs e) { var carOwner = new CarOwner(); var carOwnerDetailsPage = new CarOwnerDetailsPage { BindingContext = carOwner }; await Navigation.PushAsync(carOwnerDetailsPage); }
private async void OnItemSelected(object sender, EventArgs args) { var layout = (BindableObject)sender; var selectedCarOwner = (CarOwner)layout.BindingContext; var carOwnerDetailsPage = new CarOwnerDetailsPage { BindingContext = selectedCarOwner }; await Navigation.PushAsync(carOwnerDetailsPage); }