private async void CreateMovie(object sender, EventArgs e) { var movie = new Movie(); MoviePage addMoviePage = new MoviePage(); addMoviePage.BindingContext = movie; await Navigation.PushAsync(addMoviePage); }
private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e) { var selectedMovie = (Movie)e.SelectedItem; var moviePage = new MoviePage(); moviePage.BindingContext = selectedMovie; await Navigation.PushAsync(moviePage); }