private async void CreateWorker(object sender, EventArgs e) { Worker worker = new Worker(); WorkerPage workerPage = new WorkerPage(); workerPage.BindingContext = worker; await Navigation.PushAsync(workerPage); }
private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e) { Worker selectedWorker = (Worker)e.SelectedItem; WorkerPage workerPage = new WorkerPage(); workerPage.BindingContext = selectedWorker; await Navigation.PushAsync(workerPage); }