public override async void OnSelectItem(ArticleItem item) { if (item == null) { return; } var viewModel = new ArticleContentPageViewModel(item.Slug); var page = new ArticleContentPage(viewModel); await NavigationService.PushAsync(page); }
public override async void OnSelectItem(CollectionItem item) { if (item == null) { return; } if (IsBusy == true || IsInitialize == false) { return; } if (item.DailyOrArticleImage == "daily_24dp.png") { var viewModel = new DailyContentPageViewModel(item.IdOrSlug); var page = new DailyContentPage(viewModel); await NavigationService.PushAsync(page); } else { var viewModel = new ArticleContentPageViewModel(item.IdOrSlug); var page = new ArticleContentPage(viewModel); await NavigationService.PushAsync(page); } }