Right now, I have the data I need binding to a RichTextBlock
, but I'm unable to format it, since I'm just using one long string bound to the run
on a paragraph setup in my RichTextBlock
. Obviously, this isn't ideal. I would like to be able to change font sizes or font weights for some words, but can't see of a way to do that with my current method.
<RichTextBlock TextAlignment="Justify" TextWrapping="WrapWholeWords" Name="richTB">
<Paragraph>
<Run Text="{Binding}" />
</Paragraph>
</RichTextBlock>
I know I can create a RichTextBlock
in my code behind, and add paragraphs manually to that, but how would I bind it? Since it's in my page.resources
?