UWP 中的 TextBlock Background 属性 去了哪里?
Where has TextBlock Background property gone in UWP?
我需要在 UWP 中更改 TextBlock 的背景,但背景 属性 不再存在。解决方案是什么?
这行不通...
<TextBlock Text="Exceptions Log"
FontSize="10"
Background="Red" // This is invalid
/>
谢谢
只需将其放在网格或边框或其他内容中...
<Border Background="Red">
<TextBlock Text="Exceptions Log"
FontSize="10" />
</Border>
我需要在 UWP 中更改 TextBlock 的背景,但背景 属性 不再存在。解决方案是什么?
这行不通...
<TextBlock Text="Exceptions Log"
FontSize="10"
Background="Red" // This is invalid
/>
谢谢
只需将其放在网格或边框或其他内容中...
<Border Background="Red">
<TextBlock Text="Exceptions Log"
FontSize="10" />
</Border>