WPF webbrowser - get HTML downloaded?
- by Mathias Lykkegaard Lorenzen
I'm listening to the WPF webbrowser's LoadCompleted event. It has some navigation arguments which provide details regarding the navigation. However, e.Content is always null.
Am I paying attention to the wrong event here? How can I fetch the HTML that was just downloaded as string?
I tried some things which I would consider hacks, but they return a string of HTML, even though that was not the string downloaded. For instance, with that method when I go to a page which just sends me the string abc, I get the result <document><body>abc</body></document> or something similar.
I would prefer not getting into any more hacks than nescessary to get this running.