RichTextBlock段落背景色 [英] RichTextBlock paragraphs background color
本文介绍了RichTextBlock段落背景色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有几个段落的RichTextBlock.我需要一些段落以具有背景色.我在段落"或运行"上找不到背景"属性.我该怎么做呢?在WPF中有一个块,但WinRT中似乎不存在.
I have a RichTextBlock with a couple of paragraphs. I need some paragraphs to have a background color. I cannot find the Background property on Paragraph or Run. How do I do this? In WPF there is a Block but it does not seem to be present in WinRT.
推荐答案
不可能,但是可以插入带有StackPanel背景的InlineUIContainer.
It is not possible but it is Possible to insert a InlineUIContainer with a StackPanel with a background.
这篇关于RichTextBlock段落背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文