title: How do I create an HTML document in my code behind and load it into a WPF browser
body: <p>I have a C# WPF application. In my UI I have a <code>WebBrowser</code> that is collapsed and will remain collapsed at all times. In my code behind I want to create an HTML document and load this document into the collapsed <code>WebBrowser</code>.</p>
  
  <p>The only thing I can think of is writing my HTML as a string and then using <code>File.Create()</code> to create file and then using <code>Browser.Navigate</code> to navigate to that file.</p>
  
  <p>The problem is though, I don't want to create any temp files on the computer or have to reference any file paths. Is there any way to create some kind of HTML file object in memory and then pass this object to the <code>WebBrowser</code> to be loaded?</p>