We have a Silverlight application using the RichTextBox as a rich text editor for the user to create emails.
We actually have our own serializer but essentially we are saving and restoring the Xaml. As far as I can tell it is impossible to restore any text containing curly braces.
You can demonstrate this fairly easily by creating a RichTextBox and typing something similar to {weird} into it. Then take the .Xaml property of the textbox and set it on the .Xaml property of another textbox – kablooie.
As we have our own serializer I have tried escaping the Text member of the Run elements with <Run Text="{} the real {Text} here" />. This makes no difference. I’ve tried replacing the braces with { but that doesn’t work either.
Acknowledging the issue here and checking with the team. If the Run starts with curly braces it appears to throw a value exception. I’m investigating.