How do I retrieve the theme colour of Windows?

前端 未结 2 412
没有蜡笔的小新
没有蜡笔的小新 2021-01-01 05:18

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 Personal

相关标签:
2条回答
  • 2021-01-01 05:22

    I think DwmGetColorizationColor (http://msdn.microsoft.com/en-us/library/aa969513.aspx) is what you're looking for; you'll need to P/Invoke.

    0 讨论(0)
  • 2021-01-01 05:30

    The theme you see on Windows is based on Glass. You have to use a glass in your application to get the same effect.

    0 讨论(0)
提交回复
热议问题