Get default Windows System Colors in .NET

前端 未结 5 1727
闹比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条回答
  •  情歌与酒
    2021-02-14 08:20

    There is a System Color Class out, which will provide you the Colors.

    For WinForms use:

    System.Drawing.SystemColors

    For WPF use:

    System.Windows.SystemColors

提交回复
热议问题