示例#1
0
        /// <summary>
        /// Method which loads the News Feed and adds the items to the "News" Collection.
        /// </summary>
        public async void LoadNews()
        {
            RSSReader rssReader = new RSSReader();

            // Clear the Collection. Otherwise the Collection dupicates on every loading.
            News.Clear();

            var news = await rssReader.LoadNewsAsync(new Uri("http://blog.pdapda.de/feed/"));

            foreach (var syndicationItem in news)
            {
                News.Add(syndicationItem);
            }
        }