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); }
private MoviesItemViewModel CreateMoviesItemViewModel(Movie movie) { var moviesItemViewModel = new MoviesItemViewModel(movie); return(moviesItemViewModel); }