0

如何在 Windows Phone 的 RichTextBox 元素中为某些 Block 设置 Margin 属性?

<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>
4

1 回答 1

1

您可以使用InlineUIContainerTextBlock 并将其放入其中:

<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>
于 2012-05-29T13:06:58.467 回答