Skip to content

RichTextBlock spacing between title and second paragraph #9168

Answered by kmgallahan
limeniye asked this question in Q&A
Discussion options

You must be logged in to vote

Then try:

<RichTextBlock TextIndent="20">
      <Paragraph>
        <Bold FontSize="28">Is this the right control?</Bold>
        <LineBreak />

because:

Setting properties on LineBreak that otherwise affect the character line height of a text element (such as FontSize, FontFamily) has no effect on the text rendering and appearance. The height of a text line is inferred from the other text elements that precedes the LineBreak, and the properties of a LineBreak don't modify that line height even if set explicitly.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@limeniye
Comment options

@kmgallahan
Comment options

Answer selected by limeniye
@limeniye
Comment options

@kmgallahan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants