title: Get json content in wpf webbrowser window instead of download dialog box
body: <p>I have a c# application with wpf window and webbrowser on it. I want to do authentication in that wpf window using oauth. On backend i have web api 2.</p>
  
  <p><strong>How can i get json with my responce in HtmlDocument in my webBrowser not in another file? Because when authentication is successfull, in wpf i get download dialog window with my json.</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/nUqbr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nUqbr.png" alt="Download dialog window"></a></p>
  
  <p>In wpf window i enter authentication values.</p>
  
  <p>In wpf cs file i just send webbrowser to navigate to url with my backend controller action with all authentication processes. 
  When click to download json file wpf looks:
  <a href="https://i.stack.imgur.com/drtek.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/drtek.png" alt="enter image description here"></a></p>
  
  <p>Thanks for any help.</p>
  
  <p>In webBrowser wpf:</p>
  
  <pre><code>webBrowser.Navigate("../api/Controller/MyAction");
  </code></pre>
  
  <p>In webApi:</p>
  
  <pre><code>[HttpGet]
     public async Task&lt;IHttpActionResult&gt; MyAction()
    {
       return Content(HttpStatusCode.OK, MyJson.toString());
    }
  </code></pre>