Color of startscreen in Windows 8 through Metro Dy

2019-04-16 05:57发布

问题:

I've looked through Generic.xaml and ThemeResources.xaml in the following path:

C:\Program Files (x86)\Windows Kits\8.0\Include\WinRT\Xaml\Design

However, they don't seem to contain a resource key that I can use in order to retrieve the color of the current scheme selected in the Windows 8 start screen.

The color I am trying to retrieve through a DynamicResource in the XAML is seen visually below, to demonstrate my point.

回答1:

There is no API available to use the currently selected Windows theme color.



回答2:

Yes, no API unluckily. What about this workaround?

http://blog.quppa.net/2013/01/02/retrieving-windows-8-theme-colours/