It looks like this is a Windows Store application; I had to make several changes to get your code to work in the desktop version of the .NET Framework.
The reason you're not getting any items in your feed is because you're never adding the
feedItem
object to the
feedItems
collection on your
feedData
class:
foreach (SyndicationItem item in feed.Items)
{
feedItem FeedItem = new feedItem();
...
FeedData.feedItems.Add(FeedItem);
}
NB: Your class and variable names don't follow the standard naming conventions. Classes, methods and properties should be named using sentence case (
FeedData
,
FeedItem
,
FeedItems
, etc.); fields and local variables should be named using camel case (
feedItem
,
feedData
, etc.). By ignoring these conventions, you're making your code harder to read.