public static async Task <CarouselDetailPageViewModel> CreateViewModel(CarouselModel model) { var viewModel = new CarouselDetailPageViewModel(model); await viewModel.RefreshCollection(model.Id); return(viewModel); }
protected override void OnNavigatedTo(NavigationEventArgs e) { ViewModel = e.Parameter as CarouselDetailPageViewModel ?? new CarouselDetailPageViewModel(); }