Color of startscreen in Windows 8 through Metro DynamicResource?

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.

The color I am trying to retrieve

Upvotes: 1

Views: 980

Answers (2)

abenci
abenci

Reputation: 8651

Yes, no API unluckily. What about this workaround?

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

Upvotes: 0

Filip Skakun
Filip Skakun

Reputation: 31724

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

Upvotes: 2

Related Questions