WPF webbrowser - get HTML downloaded?
Posted
by
Mathias Lykkegaard Lorenzen
on Stack Overflow
See other posts from Stack Overflow
or by Mathias Lykkegaard Lorenzen
Published on 2012-04-02T17:26:52Z
Indexed on
2012/04/02
17:29 UTC
Read the original article
Hit count: 244
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.
© Stack Overflow or respective owner