问题
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?
回答1:
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!
来源:https://stackoverflow.com/questions/32320976/enumerating-default-uwp-themeresources