枚举默认的 UWP 主题资源 [英] Enumerating default UWP ThemeResources

查看:27
本文介绍了枚举默认的 UWP 主题资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 UWP 下的明暗主题资源中获取键和值的列表.有谁知道在哪里可以找到这些?

解决方案

您可以找到所有 24 系统颜色

画笔 属性 > 画笔 > 画笔资源

希望这会有所帮助!

I would like to get a list of the keys and values from the light and dark theme resources under UWP. Does anyone know where these can be found?

解决方案

You can find all 24 system colors here. Also there are system high-contrast colors on the same page as well as a special SystemAccentColor

At runtime, this resource (SystemAccentColor) gets the color that the user has specified as the accent color in the Windows personalization settings.

Almost all the system brushes are defined here. Do take note that this link is based on Windows 8.1 and it's missing a few Brushes like PivotForegroundThemeBrush.

How do I know? This is how I find all the system colors/brushes -

Colors - Properties > Brush > Solid color brush > Color resources

Brushes Properties > Brush > Brush resources

Hope this helps!

这篇关于枚举默认的 UWP 主题资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆