【发布时间】:2015-10-26 17:54:53
【问题描述】:
我想创建一个透明的文本框,焦点时没有背景颜色(默认为白色,或SystemControlBackgroundChromeWhiteBrush)。
我知道我可以像这样覆盖 App.xaml 中使用的颜色:
<Application.Resources>
<SolidColorBrush x:Key="SystemControlBackgroundChromeWhiteBrush">Transparent</SolidColorBrush>
</Application.Resources>
(或通过使用多个主题词典)
但是,我不想修改所有 TextBlock,而只修改特定的。我的第一个猜测是在 TextBlock 的资源中包含更改后的画笔,但这不起作用。
【问题讨论】:
标签: c# xaml windows-store-apps uwp