开发者

What SystemColor is this?

开发者 https://www.devze.com 2023-03-27 17:00 出处:网络
Please have a look at the image below: what SystemColor has the panel in the red rectangle? What SystemColor should be used in general for the background of a control that is presenting content?

Please have a look at the image below:

What SystemColor is this?

what SystemColor has the panel in the red rectangle?

What SystemColor should be used in general for the background of a control that is presenting content? I tried SystemColors.ControlBrush and SystemColors.ControlLightBrush but none of them would match the color in the image. Is it possible that the color is redefined so开发者_StackOverflowmewhere else?


My guess is it's a gradient they're applying between SystemColors. To me it looks lighter at the top and darker at the bottom. Here is a link to the SystemColors by theme, maybe it will help: http://blogs.msdn.com/b/wpf/archive/2010/11/30/systemcolors-reference.aspx


I think its just Drawing.SystemColors.Control

This seems to be the default for new controls, Me.BackColor = Drawing.SystemColors.Control

Edit: I think the area in question is Window Me.BackColor = Drawing.SystemColors.Window

0

精彩评论

暂无评论...
验证码 换一张
取 消