简体   繁体   English

silverlight 富文本框显示 rtf

[英]silverlight richtextbox display rtf

I have looked around for awhile and have not seen anything yet.我环顾了一会儿,还没有看到任何东西。 I was hoping someone came up with something by now that can guide me in the right direction.我希望现在有人想出一些东西来指导我朝着正确的方向前进。 I have an rtf string pulled from my database.我从我的数据库中提取了一个 rtf 字符串。 I was trying to find a way to display this rtf string formatted in silverlights richtextbox.我试图找到一种方法来显示这个在silverlights Richtextbox 中格式化的rtf 字符串。

From what I have read silverlights richtext stores formatted text as xaml and not true rtf.从我读过的 Silverlights Richtext 将格式化文本存储为 xaml 而不是真正的 rtf。 Has anyone found a work around?有没有人找到工作?

Thanks in advance.提前致谢。

As far as I know, the standard RichTextBox for SL cannot load the RTF text.据我所知,SL 的标准 RichTextBox 无法加载 RTF 文本。 I would suggest that you find for a custom solution.我建议您找到自定义解决方案。 For example, our DXRichEdit control is able to work with RTF, Docx, Doc and many other formats.例如,我们的 DXRichEdit 控件能够处理 RTF、Docx、Doc 和许多其他格式。 You will find a demo of this control at:您将在以下位置找到此控件的演示:

RichEdit Demo RichEdit 演示

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

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