async void OnSelectSchoolFromMap(object sender, EventArgs args) { var ViewModel = BindingContext as EditSonViewModel; if (ViewModel != null) { ((Entry)sender).Unfocus(); SchoolMapPopup popup = new SchoolMapPopup(ViewModel.NewSchool, true); await PopupNavigation.PushAsync(popup); } }
async void OnShowSchoolLocation(object sender, EventArgs args) { var page = new SchoolMapPopup(BindingContext as SchoolEntity); await PopupNavigation.PushAsync(page); }