I am just wondering if there is any approach to catch only some part of the web page using WPF and show up it?
Any ideas?
Thank you!
I am just wondering if there is any approach to catch only some part of the web page using WPF and show up it?
Any ideas?
Thank you!
Here is my solution.
mshtml.IHTMLDocument2 doc = (IHTMLDocument2)MainBrowser.Document; if (null != doc) { foreach (IHTMLElement element in doc.all) { if (element.id == "wrapper") { HTMLDivElement container = element as HTMLDivElement; dynamic dd = container; string result = dd.IHTMLElement_innerHTML; // You get ANY member of HTMLDivElementClass break; } } } 