Help to create an application for windows phone C #


#1

How to create an application for windows phone C #?
In version 1 I just used:

private void listBoxDougie_Loaded(object sender, RoutedEventArgs e)
{
WebClient connectTwitter3 = new WebClient();
connectTwitter3.DownloadStringCompleted += new DownloadStringCompletedEventHandler(connectTwitter3_DownloadStringCompleted);
connectTwitter3.DownloadStringAsync(new Uri(“https://api.twitter.com/1/statuses/user_timeline.json?screen_name=dougiemcfly”));
}

    void connectTwitter3_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
    {
        XElement Tweets = XElement.Parse(e.Result);
        listBoxDougie.ItemsSource = from tweet in Tweets.Descendants("status")
                                   select new TwitterItem
                                   {
                                       ImageSource = tweet.Element("user").Element("profile_image_url").Value,
                                       Message = tweet.Element("text").Value,
                                       UserName = tweet.Element("user").Element("screen_name").Value

                                   };
    }

Class TwitterItem:

namespace TwitterClient
{
public class TwitterItem
{
public string UserName { get; set; }
public string Message { get; set; }
public string ImageSource { get; set; }
}
}

This is no longer working, can someone help me?