rich formatted text display options in WPF

My WPF application has content displayed on a panel. The content will be authored content, hence it has to be somewhat standards compliant (like HTML or markdown or maybe even XAML etc.) The content will have formatted text, such as bold, italic and it can have hyperlinks and tooltips.

My questions:

  • What would be the appropriate text format to use?
  • And what will be the best option to implement behaviors? I tried using RTF, but how do I open the browser when the user clicks on a url within the RTF?

  • Have you tried hosting the text in a RichTextBox? This uses XAML to back the text but there are conversions to RTF or HTML. The article Mastering the WPF RichTextBox may be useful.

    链接地址: http://www.djcxy.com/p/50518.html

    上一篇: 删除WPF富文本框中的隐藏字符

    下一篇: 丰富的WPF格式文本显示选项