public async void GetPodcasts(Task <Podcast> podcastAwaitable) { Podcast podcast = await podcastAwaitable; var pControl = new PodcastControl(podcast) { Margin = new Thickness(15) }; Subscriptions.AddPodcast(podcast); PodcastsGrid.Items.Add(pControl); }
protected override void OnNavigatedTo(NavigationEventArgs e) { IEnumerable <Podcast> podcasts = Subscriptions.Podcasts.OrderBy(p => p.SortOrder); if (App.Settings.SortPodcastsByName) { podcasts = podcasts.OrderBy(p => p.Title); } foreach (Podcast podcast in podcasts) { PodcastControl podcastCtrl = new PodcastControl(podcast); podcastCtrl.UnsubscribePodcast += UnsubscribePodcast_Click; PodcastsGrid.Items.Add(podcastCtrl); //taskList.Add(podcastCtrl.SetArtworkAsync()); } base.OnNavigatedTo(e); }