【发布时间】:2020-08-06 08:58:02
【问题描述】:
我正在使用以下方法更改TextBlock 中UWP 的前景色。
textBlock.Foreground = new SolidColorBrush(Colors.Orange);
我应该如何更改代码以便我可以使用动态明暗主题颜色,例如SystemBaseHighColor?可通过https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/xaml-theme-resources获取颜色列表
【问题讨论】:
标签: uwp colors themes foreground