Silverlight 4 RichTextBox - can't restore Xaml with text containing curly braces
问题 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 -