views:

111

answers:

0

Has anyone successfully implemented a workaround for changing a selection of text in Silverlight RichTextBox to superscript/subscript?

In WPF, I would do

MyRichTextBox.Selection.ApplyPropertyValue(Inline.BaselineAlignmentProperty, BaselineAlignment.Superscript);

This is not directly supported in Silverlight and I found a suggestion to use TextBlocks with different positions... but I can't figure out how to insert a TextBlock to a specific position in a RichTextBox.