我需要在 UWP 中更改 TextBlock 的背景,但背景属性不再存在。解决这个问题的方法是什么?
这行不通...
<TextBlock Text="Exceptions Log"
FontSize="10"
Background="Red" // This is invalid
/>
谢谢
最佳答案
只需将它放在网格或边框或其他东西中......
<Border Background="Red">
<TextBlock Text="Exceptions Log"
FontSize="10" />
</Border>
关于xaml - UWP 中的 TextBlock 背景属性去哪儿了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34131831/