简体   繁体   中英

Displaying HTML in WP7

So I was looking for a way to display HTML in WP7 (binding it to datacontext) and a generous dude here suggested that I use the MPS Toolkit, that provides HTMLViewer and HTMLTextBox components to WP7. so I did and at the beginning it looked great. the html was displayed exactly how I wanted but for some pages it throws the following exception: The property 'Margin' was not found in type 'Paragraph' I've been sitting 2 days trying to fix this problem without luck! I though it was because of some attributes in the xaml but I was wrong, it's something in the html that this library doesn't like. Does anyone know about a solution for this? or maybe another suggestion for displaying html in wp7 (not webbrowser). Anything would be REALLY appreciated!

What's wrong with using WebBrowser? All you need is an attached property that will be able to invoke the HTML rendering method ( NavigateToString ) with the content you pass to it.

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