I would like to have a way to get the theme colour of the users Windows theme with WPF or C# code-behind. And with this colour I mean the one that can be set in Personalization\Window Color and Appearance under Windows 7(and Vista too, I think). I want to use this colour to make a gradient in much the same way as Trillian 5 does it.
我试图自己找到它,但不幸的是我一无所获。显然它不在下面SystemColors.Whatever
。我在上面找到了一些东西MSDN http://msdn.microsoft.com/en-us/library/microsoft.windows.themes.themecolor.aspx但我不知道如何使用它,我也不认为这是我想要的。
如果有人能帮助我,我将不胜感激。
I think DwmGetColorizationColor
(http://msdn.microsoft.com/en-us/library/aa969513.aspx http://msdn.microsoft.com/en-us/library/aa969513.aspx) 就是您要寻找的;您需要 P/Invoke。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)