0

How can I set Margin property for some Block in RichTextBox element in Windows Phone?

<RichTextBox>
    <Paragraph>Today I am going to talk about RichTextBox, I know you must be having lot of expectations from this RichTextBox. Here I will try my best to make you aware of what will work and what will not work in this short post for RichTextBox in Windows Phone </Paragraph>
</RichTextBox>
revolutionkpi
  • 2,632
  • 10
  • 45
  • 84

1 Answers1

1

You can use InlineUIContainer and put TextBlock in it:

<RichTextBox>
            <Paragraph>
                <InlineUIContainer>
                    <TextBlock Text="Today I am going to talk about RichTextBox, I know you must be having lot of expectations from this RichTextBox. Here I will try my best to make you aware of what will work and what will not work in this short post for RichTextBox in Windows Phone"
                               TextWrapping="Wrap"
                               Margin="10" />
                </InlineUIContainer>
            </Paragraph>
        </RichTextBox>
Catherine
  • 644
  • 6
  • 11