开发者

How do i convert Xaml to Rtf in silverlight?

开发者 https://www.devze.com 2023-03-15 01:28 出处:网络
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.

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

精彩评论

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