Color of startscreen in Windows 8 through Metro DynamicResource?

筅森魡賤 提交于 2019-12-06 13:16:44

问题


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/



来源:https://stackoverflow.com/questions/12192610/color-of-startscreen-in-windows-8-through-metro-dynamicresource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!