简体   繁体   中英

Windows Phone 8.1 Display Part of Webpage

I am making an app which wraps a webpage. However, I only want to display part of the page (the rest has a bunch of junk.) I need to get the element I want to show by the id and display it in a WebView . But HtmlDocument and the likes doesn't seem to work in WP 8.1. Can anyone help me out?

You should be able to use htmlAgilityPack instead? It's a little overkill, but will do the job. You can get the package off nuget. (Install-Package HtmlAgilityPack)

Use is pretty well documented if you do a search, but you want to load the doc into it, extract the node you want, then feed that to the WebView control.

You mention HtmlDocument, so I'm assuming you're just wanting to display specific static pages from a site? This won't work if you want navigation or anything more than that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM