How to convert Xaml to Rtf in silverlight?

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

I am working on a RichTextBox, and I have Xaml in hand, and I would like to convert it to rtf and save it to the database.

So how do I convert Xaml to Rtf in Silverlight? ( TextRange does not work in Silverlight)

+8
c # silverlight xaml rtf
source share
2 answers

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

0
source share

Have you tried NRTFTree? This is a .net library that can create RTF check it in code. http://www.codeproject.com/KB/string/nrtftree.aspx

+1
source share

All Articles