title: Load source HTML as string using CefSharp Wpf
body: <p>I am trying to use the CefSharp WPF package to load a web page then access the HTML source of the web page I have loaded. </p>
  
  <p>I am able to display the web page correctly, but I want to be able to see the HTML of the page. </p>
  
  <p>I am able to call the following, but it displays the text in a temporary text file, however I want to see the source as a string ideally but would be ok if the file saved to disk. </p>
  
  <pre><code>_webBrowser.ViewSourceCommand.Execute(this);
  </code></pre>
  
  <p>This is my class</p>
  
  <pre><code>public partial class View: Window
  {
      private CefSharp.Wpf.ChromiumWebBrowser _webBrowser; 
      public View()
      {
          InitializeComponent();
  
          var settings = new CefSettings();
          settings.PackLoadingDisabled = true;
          _webBrowser = new CefSharp.Wpf.ChromiumWebBrowser();
          BotBrowser.Children.Add(_webBrowser);
          _webBrowser.Address = "http://www.google.com/";
      }
  
      private void button_Click(object sender, RoutedEventArgs e)
      {
          _webBrowser.ViewSourceCommand.Execute(this);
      }
  }
  </code></pre>