How to display HTML content on a Windows phone?

how to display my html content in my application. How to use htmltextblock? please help me frnd..i stuck with one week for this problem ... my xml document description tag contains html content, how to link this tag with my application

+4
source share
1 answer

Perhaps you can use the WebBrowser control to display this content. An example of displaying data from a row in this control from the code behind would be:

webBrowser1.NavigateToString("<html><body><h1>Description</h1><p>This is a description, set from code</p></body></html>"); 

I am tempted to lower my bid for using invalid HTML markup, but that seems a bit harsh, doesn't it ?;)

In any case, if you want to bind to a property of the model, you will need to do additional work to establish the bindings. This blog post explains well how to add a dependency property that you can use to bind HTML strings in your models.

+10
source

Source: https://habr.com/ru/post/1391871/


All Articles