简体   繁体   English

如何在除了webbrowser控件之外的WPF控件中显示格式化的Html?

[英]How to display the formatted Html in WPF control other than webbrowser control?

如何在除WebBrowser控件之外的WPF控件中显示格式化的HTML

You can use RichTextBox. 您可以使用RichTextBox。

Check project Html To RichTextBox on codeplex.com. 在codeplex.com上检查项目Html To RichTextBox

You can convert HTML to a FlowDocument and display that. 您可以将HTML转换为FlowDocument并显示它。 Good to do it with an XSL transform, unless your subset of HTML tags is super-limited. 除非您的HTML标记子集超限,否则使用XSL转换很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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