WPF control for formatting raw HTML

I am wondering if there is a WPF control that will display well-formatted HTML?

I want to bind the raw HTML part to the control and format the tags with carriage returns and tabs well, etc.

Note. I do not want to display the output of the HTML string in the control as a web browser control, but only the formatted source string itself

+4
source share
1 answer

WebBrowser should do what you need.

<WebBrowser Name="myWebBrowser"/>

Use the NavigateToString method to transfer HTML content.

myWebBrowser.NavigateToString(myHTMLContent);
-1
source

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


All Articles