public static async Task <CarouselDetailPageViewModel> CreateViewModel(CarouselModel model)
        {
            var viewModel = new CarouselDetailPageViewModel(model);

            await viewModel.RefreshCollection(model.Id);

            return(viewModel);
        }
Example #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     ViewModel = e.Parameter as CarouselDetailPageViewModel ?? new CarouselDetailPageViewModel();
 }