예제 #1
0
        private async Task OpenDetailPage(MoviesItemViewModel miViewModel)
        {
            var detailView = Resolver.Resolve <MovieDetailPage>();
            var viewModel  = detailView.BindingContext as MovieDetailViewModel;

            viewModel.MovieDetails = Resolver.Resolve <IMovieService>().GetMovieDetails(miViewModel.Movie);
            viewModel.Title        = "Filmdetails";

            await Navigation.PushAsync(detailView);
        }
예제 #2
0
        private MoviesItemViewModel CreateMoviesItemViewModel(Movie movie)
        {
            var moviesItemViewModel = new MoviesItemViewModel(movie);

            return(moviesItemViewModel);
        }