Windows Forms - Inactive Backlight Color

I have a control ListViewwith OwnerDraw = true.

  • Sometimes my control may not be focused, but there are elements selected. What color should be used to display the selection bar?

  • I could not find any recommendations for this, however, it seems that the usual one ListViewuses color SystemColors.Controlfor this (see picture).

    enter image description here

  • Can I rely on this or it would be incorrect for some cases?

+3
source share
1 answer

SystemColors.Control- the right color. Unfortunately, for the inactive element there is no predefined Colorin SystemColors, which makes it obvious, but it is reliable.

, SystemColors, - Windows. , , , .

UX Windows , , , .

, , , (, Visual Studio, ), -.

, .

+2

All Articles