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 Developer Compendium now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.