Skip to content

Instantly share code, notes, and snippets.

@runceel
Created March 12, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runceel/9508013 to your computer and use it in GitHub Desktop.
Save runceel/9508013 to your computer and use it in GitHub Desktop.
こんな
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Web.Syndication;
namespace App1
{
public class TestData : INotifyPropertyChanged
{
private SyndicationFeed feed;
public SyndicationFeed Feed
{
get { return this.feed; }
set
{
this.feed = value;
this.OnPropertyChanged("Feed");
}
}
public async Task Load()
{
var r = new SyndicationClient();
this.Feed = await r.RetrieveFeedAsync(new Uri("http://blogs.msdn.com/b/microsoft_japan_academic/rss.aspx"));
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment