locked
Where is HtmlDocument class? RRS feed

  • Question

  • Hi, I want to show a web page using WebView control. I need to edit the property(Font, BackGround, etc) of some Html element in the page. In the era of Win32, we can just get the Document of a WebBrower then do what we want to do. But in a Windows store app, I can't find the  HtmlDocument class or IHtmlDocument interface. My question is: Which assembly are they defined in if there's any? How can I retrieve them from an instance of WebView?(Forgive me, I don't want to use WebView.InvokeScript() method, because I am not familiar with JavaScript, and it seems much more error-prone.) thanks!
    Friday, November 22, 2013 2:52 PM

Answers

  • Hi!

    There are no native HtmlDocument in winRT :(

    You can try to use Html Agility Pack

    Or, as you say, you need to execute WebView.InvokeScript() :)


    • Edited by Oleg Kurzov Friday, November 22, 2013 3:05 PM
    • Marked as answer by silverbird.lee Monday, November 25, 2013 1:22 AM
    Friday, November 22, 2013 2:59 PM

All replies