This is a mirror of official site: http://jasper-net.blogspot.com/

Windows Phone 7 development: Using WebBrowser control

| Monday, May 3, 2010
In my posting Windows Phone 7 Series development: reading RSS feeds I showed how to read RSS feeds using XmlReader. Although I hoped to start pimping up user interface I found some more work that needs to do be done. In this posting I will show you how to use WebBrowser control to display RSS content. Example solution is also here for download.

WebBrowser control is something new in Windows Phone 7 Silverlight control set. As we have platform with only one and only IE browser (no native code yet, remember) we are happy we can use browser functionality in our applications. I don’t consider WebBrowser control something convenient if we consider usability but as we don’t have any better choice I see no problem using it.
Changes from last posting

Before we start using WebBrowser control I give you short overview of things I ‘ve changed meanwhile:

  1. I made some minor modifications to RSS client so content is read correctly.
  2. I moved feed entries list to application scope so it is available for all pages in my application.
  3. I added new page that displays selected feed entry and updated “Read more” button in main page so it redirects user to feed entry page.

NB! In the end of this posting you will find Visual Studio 2010 solution with my not so outstanding work on this example so far. Feel free to download it and modify it how you like. Don’t forget that this example is my pretty raw playground and don’t expect to find any amazing solutions there because I am complete n00b at Silverlight.

Read more: Gunnar Peipman's ASP.NET blog

Posted via email from jasper22's posterous

0 comments: