1

I have a TextBlock and the Text is read from a .json file. In this text there is some O(n^3/4) which I want to replace with the proper superscript version of it. Is there a way to do it, not in XAML?

Daniel
  • 318
  • 6
  • 20
  • I think you may have to process the entries into either rich text or possibly just directly into [`Inlines`](http://stackoverflow.com/questions/17170006/read-c-sharp-textblock-text-property-filled-using-inlines). – Nate Diamond Mar 07 '14 at 21:09

1 Answers1

1

Typography.Variants allows you to specify text formatting as super/sub-script. The documentation shows how to achieve it with Runs in a Paragraph of a rich text box, but you can also do that in Inlines of a TextBlock.

Filip Skakun
  • 31,624
  • 6
  • 74
  • 100