title: WPF WebBrowser HTML 5
body: <p>I dragged a WPF WebBrowser Control into my Blend Project and then assigned the source to be a HTML5 Page. I wanted to utilize the LobsterPot HTML5 PivotViewer(url: LobsterPot HTML5 PivotViewer) into my WPF Application. </p>
  
  <p>The Page Loads and then I get a notification at the top of the browser saying that active content has been blocked and when I click on Allow, the screen remains blank. Nothing is displayed on the Screen. Can anyone guide me and explain where I am going wrong...</p>
  
  <pre><code>&lt;Window
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
      x:Class="CheckLobster.MainWindow"
      x:Name="Window"
      Width="640" Height="480" UseLayoutRounding="True" WindowStartupLocation="CenterScreen" WindowState="Maximized" Title="HTML 5 Pivot Viewer Sample"
      ResizeMode="CanResizeWithGrip"&gt;
  
  
  
  
      &lt;StackPanel Orientation="Vertical" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"&gt;
          &lt;StackPanel Orientation="Horizontal"&gt;
              &lt;Button x:Name="BackButton" Content="Back" Margin="5" Cursor="Hand" ToolTip="Press this button to navigate to the previous page" FontWeight="ExtraBold" MouseLeftButtonDown="BackButton_MouseLeftButtonDown"/&gt;
              &lt;Button x:Name="NextButton" Content="Next" Margin="5" Cursor="Hand" ToolTip="Press this button to navigate to the next page." FontWeight="ExtraBold" MouseLeftButtonDown="NextButton_MouseLeftButtonDown"/&gt;
              &lt;TextBox x:Name="UriFieldTextBox" TextWrapping="Wrap" Margin="10,5,5,5" VerticalContentAlignment="Stretch" ToolTip="Enter the Web Address that you wanted to navigate to and press the Go Button" HorizontalAlignment="Right" MinWidth="300"/&gt;
              &lt;Button x:Name="GoButton" Content="Go" HorizontalAlignment="Right" Margin="5" FontWeight="ExtraBold" ToolTip="Press this button to navigate to the specified page." Cursor="Hand" MouseLeftButtonDown="GoButton_MouseLeftButtonDown"/&gt;
  
          &lt;/StackPanel&gt;
  
          &lt;WebBrowser x:Name="MyWebBrowser" Margin="0" MinHeight="600"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Loaded="MyWebBrowser_Loaded" /&gt;
  
  
      &lt;/StackPanel&gt;
  &lt;/Window&gt;
  
  public partial class MainWindow : Window
      {
          public MainWindow()
          {
              this.InitializeComponent();
  
              // Insert code required on object creation below this point.
          }
  
          private void BackButton_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
          {
              // TODO: Add event handler implementation here.
              MyWebBrowser.GoBack();
          }
  
          private void GoButton_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
          {
              // TODO: Add event handler implementation here.
              MyWebBrowser.Navigating += new NavigatingCancelEventHandler(MyWebBrowser_Navigating);
              MyWebBrowser.Navigated += new NavigatedEventHandler(MyWebBrowser_Navigated);
              string address = UriFieldTextBox.Text.ToString().Trim();
              MyWebBrowser.Navigate(new Uri(address,UriKind.RelativeOrAbsolute));
          }
  
          private void NextButton_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
          {
              // TODO: Add event handler implementation here.
              MyWebBrowser.GoForward();
          }
  
          private void MyWebBrowser_Loaded(object sender, System.Windows.RoutedEventArgs e)
          {
              // TODO: Add event handler implementation here.
              MyWebBrowser.Navigating += new NavigatingCancelEventHandler(MyWebBrowser_Navigating);
              MyWebBrowser.Navigated+=new NavigatedEventHandler(MyWebBrowser_Navigated);
              Uri uri = new Uri("C:\\Users\\Manthravadi\\Desktop\\lobsterpothtml5pivotviewer-0.6.8\\examples\\PASS Summit 2011.html",UriKind.Absolute);
              MyWebBrowser.Source= uri;
          }
  
  
  
          void MyWebBrowser_Navigating(object sender,NavigatingCancelEventArgs args){
              MessageBox.Show("Page is Loading ...\n\nPlease wait");
          }
  
          void MyWebBrowser_Navigated(object sender, NavigationEventArgs args){
              MessageBox.Show("Page has been Loaded ...!");
          }
  </code></pre>
  
  <p>Also, When I type an address such as "http://google.com" (without the quotes) into the UriFieldTextBox and press the Go Button, no page is loading, can someone explain where I am going wrong?</p>
  
  <p>~ Harsha</p>