Get default Windows System Colors in .NET

前端 未结 5 1752
闹比i
闹比i 2021-02-14 07:49

I\'m writing a custom Button control as part of a (soon to be) free Control suite, and I would like to base my (default) Control colors on the corresponding Windows System color

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-14 08:44

    Yes. In fact, there is an entire class dedicated to this:

    The SystemColors class.

    ...or for WPF (thanks @ORMapper), The System.Windows.SystemColors class.

提交回复
热议问题