문제

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>
도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top