async Task ItemClickCommandExecuteAsync(Place place) { if (IsBusy) { return; } Exception error = null; try { IsBusy = true; var placePage = new PlacePage(); await placePage.ViewModel.Initialize(place); await Navigation.PushAsync(placePage); } catch (Exception ex) { Debug.WriteLine("Error: " + ex); error = ex; } finally { IsBusy = false; } if (error != null) { await ShowAlertAsync("Error!", error.Message, "OK"); } }
public void ClickingHotPlaceNavigatesToDetails() { Page.SelectHotPlace("Ulun Danu Beratan Temple"); var placePage = new PlacePage(App); placePage.WaitForLoad(); }
public App() { InitializeComponent(); MainPage = new PlacePage(); }