WPF webbrowser - get HTML downloaded? WPF webbrowser - get HTML downloaded? wpf wpf

WPF webbrowser - get HTML downloaded?


This event will only be fired for top-level navigations, probably the reason of your initial problem.

The approach that you mentioned is not hacking at all, it is an official API returning HTML text (including all tags) of the downloaded document.

dynamic doc = webBrowser.Document;var htmlText = doc.documentElement.InnerHtml;

If you want to get a plain text from your HTML document, there is a simple explanation how to do that.