I've got a simple InlineUIContainer
inside a Paragraph
, inside a RichTextBlock
. How can I make the content inside the InlineUIContainer take the full width of the RichTextBlock? Setting the HorizontalAlignment
property obviously does nothing, so what can? For the moment I'm using the extremely hacky way of having:
<RichTextBlock>
<Paragraph>
<InlineUIContainer>
<TextBlock Text="__________________________________________________________________" FontSize="72"/>
<!--Content-->
</InlineUIContainer>
</Paragraph>
</RichTextBlock>
This is obviously an extremely bad way of getting it to stretch, so what would work?