예제 #1
0
        private async void CreateMovie(object sender, EventArgs e)
        {
            var       movie        = new Movie();
            MoviePage addMoviePage = new MoviePage();

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

            moviePage.BindingContext = selectedMovie;
            await Navigation.PushAsync(moviePage);
        }