コード例 #1
0
 private async void CreateCarOwner(object sender, EventArgs e)
 {
     var carOwner            = new CarOwner();
     var carOwnerDetailsPage = new CarOwnerDetailsPage
     {
         BindingContext = carOwner
     };
     await Navigation.PushAsync(carOwnerDetailsPage);
 }
コード例 #2
0
 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);
 }