O'Reilly logo

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint by Carl Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required