Coder Social home page Coder Social logo

windows-appsample-rssreader's Introduction

page_type languages products statusNotificationTargets
sample
csharp
windows
windows-uwp

RssReader sample

A mini-app for retrieving RSS feeds and viewing articles, showing MVVM and design best practices. Users can specify the URL of a feed, view articles in a WebView control, and save favorite articles to local storage. This sample runs on the Universal Windows Platform (UWP) and WinUI 2.4.

Note - This sample is targeted and tested for Windows 10, version 2004 (10.0; Build 19041), and Visual Studio 2019. If you prefer, you can use project properties to retarget the project(s) to Windows 10, version 1903 (10.0; Build 18362).

RssReader app displaying some sample feeds

Features

Note: Features in this app are subject to change.

RssReader demonstrates:

June 2020 update

This update includes:

  • Refactoring for WinUI 2.4 controls, specifically ProgressBar.

September 2016 update

This update includes:

  • General cleanup, commenting, and refactoring for clarity.
  • Improved error handling and performance.
  • Fixes for several bugs related to layout, navigation, browser launch, and URL handling.

March 2016 update

This update includes:

  • A complete redesign of the UI to show effective use of color, type, images, and animated effects.
  • Major improvements to layout, navigation, and window-size adaptivity to support small and large screens.
  • Use of the WebView control to show articles within the app.
  • The ability to rename feeds and to rearrange feeds and favorites.

We implemented the navigation and layout patterns in this sample using code from the XAML navigation menu and XAML master/detail samples in the Windows-universal-samples repo. These samples represent the current minimum recommendations for these patterns, and the RssReader sample will continue to reflect this guidance in future updates.

Please report any bugs or suggestions on the Issues list. All feedback is welcome!

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:

Universal Windows Platform development

Prerequisites

  • Windows 10. Minimum: Windows 10, version 1809 (10.0; Build 17763), also known as the Windows 10 October 2018 Update.
  • Windows 10 SDK. Minimum: Windows SDK version 10.0.17763.0 (Windows 10, version 1809).
  • Visual Studio 2019 (or Visual Studio 2017). You can use the free Visual Studio Community Edition to build and run Windows Universal Platform (UWP) apps.

To get the latest updates to Windows and the development tools, and to help shape their development, 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.

windows-appsample-rssreader's People

Contributors

capfei avatar chuckries avatar karl-bridge-microsoft avatar karlerickson avatar matchamatch avatar microsoft-github-policy-service[bot] avatar mortonfox avatar msatranjr avatar stevewhims avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-appsample-rssreader's Issues

Failure opening

as soon as I open this in VS 2015 Comm. I get
[Failure] Could not find file 'C:\Users\d\Downloads\Windows-appsample-rssreader-master\Windows-appsample-rssreader-master\RssReader\obj\ARM\Debug\App.g.i.cs'.

Closest thing I have is App.g.cs

Why not Implment Windows.Web.Syndication.SyndicationFeed entirely?

Is there a reason you didn't bind your feed items (ArticleViewModel) directly to the feed SyndicationItems? [ListView Bound to the feeds list items]

I'm trying to understand why you created a custom view model, could you not bind directly to the Feed items.

I see that SyndicationFeed and SyndicationItems are sealed classes. but I'm missing the connection between why they weren't implemented directly in the view model. (Why was a custom model used?)

Thanks

Always open the rss article in web browser and not in webview

Hi!!
Your code is awesome, but I can't figure it out why always when I click an article on the app, it opens it on first on the default browser and then in the app on the webview part.
is there a reason this is happening, what I'm looking for is to open it only on the webview part on the app, not in the default browser, could you point me in the right direction.
thanks

How to install this app on windows 10?

Hey as the title says how to install this app on windows 10?
I have windows 10 Pro Version 1607 (OS Build 14393.51)
Is there is anyway to install this through Windows store?

if there isn't then why you didn't published this good UI app on store?
if there is then why I can't find it?

Sample builds OK but won't run

App freshly cloned
Windows SDK 1809 installed

image

F5/Ctrl-F5:

Build has been canceled.DEP6957:

  • Failed to connect to device '127.0.0.1' using Universal Authentication.
  • Please verify the correct remote authentication mode is specified in the project debug settings.
  • COMException - No connection could be made because the target machine actively refused it.
  • (Exception from HRESULT: 0x8007274D) [0x8007274D]

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.