Want to learn how to host web content in WPF, load Word Docs into WPF, etc? How about calling HTML script and Word from WPF and vice versa? Attached is a simple sample that demonstrates using the WebBrowser control to host content. Specifically, it shows the following:

  • Navigating on the web (e.g. navigating to websites, going back and forward in the history, refreshing the page).
  • Bridging WPF and HTML -- Control the WPF application from hosted HTML script and call HTML script using WPF.
  • Bridging WPF and Microsoft Word -- load a Word page into the WebBrowser and then using WPF save the Word File.
  • Demonstrates use of most of the WebBrowser control's members.