RSS Reader 1.0

Using the Visual Studio integrated development environment and the C# programming language, we will develop a universal application for reading news feeds (RSS) from internet sources.

circle-info

Information

RSS is a software mechanism for exchanging news between websites or between a site and a user. It represents a set of formats for delivering information from the World Wide Web.

Start

  1. Launch the Visual Studio integrated development environment.

  2. Create a new project: Visual C# > Windows Universal > Blank App (Universal Windows).

  3. Name the project: RSS Reader 1.0.

Item.cs

Add a new class Item.cs which will be used to store data for each news item in the feed.

public class Item
{
    public string Title { get; set; }
    public string Link { get; set; }
    public string PublishedDate { get; set; }
}

MainPage.xaml

The MainPage.xaml file contains the source code for the application's user interface design and is written in XAML. Copy (Ctrl+C) and paste (Ctrl+V) the fragment below into your application.

View of the user interface design (XAML) in Visual Studio while developing the application:

Fig. 1.44. View of the user interface design

MainPage.xaml.cs

The MainPage.xaml.cs file contains the source code for the application's business logic and is written in C#. Copy (Ctrl+C) and paste (Ctrl+V) the fragment below into your application.

Demo

View of the business logic (C#) in Visual Studio while developing the application:

Fig. 1.45. View of the application's business logic

Run the application from the menu: Debug > Start Debugging or by pressing the F5 key.

Fig. 1.46 Universal application for reading internet news feeds (RSS sources)

Last updated