Coder Social home page Coder Social logo

windows-appsample-rssreader's Introduction

RSSReader sample

RSSReader is a sample Universal Windows Platform (UWP) app for retrieving RSS feeds and viewing articles. Users can specify the URL of a feed, launch articles for viewing in the browser, and save favorite articles to local storage. It is designed to run on multiple form factors and uses an MVVM architecture.

RSSReader app displaying some sample feeds

Features

Note: Features in this app are subject to change.

RSSReader demonstrates:

  • Use of the Syndication APIs (Windows.Web.Syndication) to retrieve an RSS feed.
  • Use of the DataContractSerializer class (System.Runtime.Serialization.DataContractSerializer) to save and restore app data from local storage.
  • The XAML SplitView control along with AdaptiveTriggers to create an app that works well for multiple screen sizes.
  • C# and XAML using the MVVM design pattern.

Universal Windows Platform development

This sample requires Visual Studio 2015 and the Windows Software Development Kit (SDK) for Windows 10.

Get a free copy of Visual Studio 2015 Community Edition with support for building Universal Windows apps

Additionally, to be informed of the latest updates to Windows and the development tools, join the Windows Insider Program.

Running the sample

The default project is RSSReader and you can Start Debugging (F5) or Start Without Debugging (Ctrl+F5) to try it out. The app will run in the emulator or on physical devices.

Note: This sample assumes you have an internet connection. Also, the platform target currently defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.

Code at a glance

If you’re just interested in code snippets for certain API and don’t want to browse or run the full sample, check out the following files for examples of some highlighted features:

  • ViewModel/FeedsArticlesViewModel.cs:
    • The view model contains the majority of the core functionality of the app (state and behavior), including the implementations of the view Commands, use of the syndication API, and use of the serialization API.
  • View/FeedsArticlesView.xaml and FeedsArticlesView.xaml.cs
    • The XAML view and associated code behind that contains all of the visuals for the app. It demonstrates basic usage of adaptive triggers with the XAML SplitView control to create an interface that works well across screen sizes.
  • Model/RssArticleModel.cs and RssFeedModel.cs
    • The models are the core data objects for storing RSS feeds and their associated articles.
  • Common/BindableBase.cs and DelegateCommand.cs:
    • MVVM helper classes
    • Inherit from BindableBase to make your class observable (that is, give it an implementation of INotifyPropertyChanged)
    • Expose a property of type DelegateCommand on your class to implement the command design pattern (an implementation of ICommand)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.