Using the WebBrowser control to display the post

We have come a long way, but we aren't quite finished yet. There's one little thing left to do. The details view page is a bit bland. What we want to do next is open the post in a web browser, so that we can view the real details. To do this, we need to do the following two things:

  • Add a WebBrowser to the details view
  • Navigate the WebBrowser to the post's URL

Adding a WebBrowser to the details view

Open the file DetailsView.xaml and find ContentPanel. Within this grid, add the following XAML:

<phone:WebBrowser x:Name="browser" HorizontalAlignment="Stretch" />

This adds a WebBrowser control named browser to the content panel. It is important to give the web browser a width by either directly specifying ...

Get Microsoft SharePoint 2010 Enterprise Applications on Windows Phone 7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.