

- CRAIGSLIST FEED READER HOW TO
- CRAIGSLIST FEED READER UPDATE
- CRAIGSLIST FEED READER FULL
- CRAIGSLIST FEED READER WINDOWS 8
- CRAIGSLIST FEED READER DOWNLOAD
RSSFeed feeds = await _client.GetFeeds(url, _maxFeeds) Next, I add the GetFeeds method that retrieves the given number of feed items for an RSS feed URL and sets the DataContext of the MainPage to the returned RSSFeed instance. SelectionChangedEventHandler(FeedListView_SelectionChanged) įetchButton.Click += new RoutedEventHandler(FetchButton_Click) Loaded += new RoutedEventHandler(MainPage_Loaded) I also wired up the Loaded event of the page so that I can load the initial RSS feed. In the MainPage class constructor, I wired up the SelectionChangedEvent for the ListView of RSS feed items and the Click event for the Fetch button. Next, I add a member variable to store the number of feeds to display and wired up an RSSClient instance for the page. Open up and add a using statement for the RSS project as follows: The next order of business is to retrieve the initial RSSFeed and set the data context for the page. You should now be able to run the application and see the image from Figure 4.

CRAIGSLIST FEED READER FULL
See Listing 5 for the full XAML markup for the MainPage. All of this should look familiar if you've used data binding in either WPF or Silverlight. An RSSFeed object will be used as the primary DataContext for the page. To allow flexibility in the layout of the RSS item display, I've chosen to use data binding. RSS items themselves will be displayed through a ListView control. I've put in a WebView in the second column control that will be used to display the full Web page view of the RSS item. I'll be using a two-column layout with a single row and column header for the main navigation of the application. When a user clicks on an RSS feed item, the associate link for the item will be passed and rendered by a WebView control.
CRAIGSLIST FEED READER UPDATE
The user will be able to enter a new RSS feed and click on a Fetch button to update the RSS feed items displayed. The application will by default retrieve the VSM Column RSS feed.

Adding the RSS project reference to the UI project. First, I add a reference to the RSS project in the solution, as shown in Figure 3.įigure 3. The next step is to get the UI project set up. I use LINQ to transform the multiple authors and links that may be contained in an individual feed item. To actually retrieve the RSS feed I use the WinRT SyndicationClient class from the namespace. In addition, the method limits the number of feeds returned by the given maxItems variable. The RSSClient class contains one method, named GetFeeds, that retrieves all the feed items for the given feed URL. Last, I'll add the RSSClient class, which is the heart of the RSS library. Next I add the RSSFeed class, which contains an aggregation of all items for the feed and a title. A feed item contains a title, one or more authors, content, a description, the publication date, and one or more links. Next I add the RSSItem class, which will represent an individual feed item. In the constructor, I set the Title property to the absolute path of the link in the case where the title tag was absent. I'll add the RSSLink class first, as the RSSItem class depends upon it. The RSS client will retrieve RSS items and RSS items will contain RSS links. I added a new C# Class Library to the project ( Figure 2) and named it VSMWinRTDemo.RSS.įigure 2. Next, I added the RSS client project, which will consume an RSS feed. I've named my project VSMWinRTDemo.UI.įigure 1.

I opened Visual Studio 11, seen in Figure 1, and created a new C# Metro app through File-> New Project.
CRAIGSLIST FEED READER DOWNLOAD
The first order of business is to download the Visual Studio 11 Developer Preview.
CRAIGSLIST FEED READER HOW TO
Along the way, you'll learn how to bind data to a form using XAML and consume an RSS feed using WinRT. I'll go in depth on how to build the application from scratch. The application is an RSS reader that utilizes WinRT.
CRAIGSLIST FEED READER WINDOWS 8
Since readers have asked for more, I've decided to revisit the Windows Runtime, leveraging it to create a Windows 8 Metro-Style application. The basics of the Windows Runtime and how to access it from. C# Corner Building a Windows 8 RSS ReaderĮric Vogel walks through a soup-to-nuts demo for building a Metro-style RSS reader.
