0

我必须将 RTF 文本直接显示到 Windows 8 XAML 控件的 RichTextBlock 中是否可能以及如何?

4

1 回答 1

1

最简单的方法是通过调用 myRichEditBox.Document.SetText(TextSetOptions.FormatRtf, yourRtf) 来实际使用 RichEditBox。这篇文章解释了如何绑定到文本:http ://answers.flyppdevportal.com/categories/metro/csharpvb.aspx?ID=f9a83d4e-26e9-476b-8818-7ccdf91a2341

这篇文章解释了为什么 RichEditBox 比 RichTextBlock 强大的一些背景:http: //social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/de958373-72a5-4987-97be-1f6549ee143e

于 2013-06-17T17:37:56.930 回答