开发者

How do i convert Xaml to Rtf in silverlight?

I would like to know how to convert Xaml to Rtf in silverlight.

I am working 开发者_Python百科on RichTextBox and i have the Xaml in hand and i would like to convert it to rtf and save it to the DB.

so how do I convert Xaml to Rtf in Silverlight? (TextRange doesn't work in Silverlight)


Did you try NRTFTree? This is a .net lib which can build RTF check it in codeplex. http://www.codeproject.com/KB/string/nrtftree.aspx


@Gabe:The WPF RTB does NOT support all the classes defined in SL, so if you try to convert a xaml string generated by SL RTB to a rtf string in a WPF RTB, an System.Windows.Markup.XamlParseException exception may be thrown!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜