Base:
property
BackColor
System.Windows.Forms.Control.BackColor
3 writes to BackColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
220
_dropDownButton.
BackColor
= SystemColors.Control;
261
BackColor
= SystemColors.Control,
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
20
BackColor
= Color.Transparent,
48 references to BackColor
System.Windows.Forms (48)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1370
get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (
BackColor
== SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (4)
157
if (Control.
BackColor
!= SystemColors.Control && SystemInformation.HighContrast)
165
ControlPaint.DrawBorderSimple(deviceContext, bounds, ControlPaint.Dark(Control.
BackColor
));
422
ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.
BackColor
);
733
new(deviceContext, Control.ForeColor, Control.
BackColor
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (2)
40
Color backColor = Control.
BackColor
;
133
Color backColor = Control.
BackColor
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
27
Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.
BackColor
, r.Location);
73
Control.PaintBackground(e, r, IsHighContrastHighlighted() ? SystemColors.Highlight : Control.
BackColor
, r.Location);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
73
Color color = isHighContrastHighlighted ? SystemColors.Highlight : Control.
BackColor
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxModernAdapter.cs (8)
84
bool hasTransparentBackColor = Control.
BackColor
.HasTransparency();
88
using var backBrush = Control.
BackColor
.GetCachedSolidBrushScope();
97
Control.
BackColor
);
99
if (useExplicitBackColor && hasTransparentBackColor && Control.
BackColor
.A > 0)
101
using var backBrush = Control.
BackColor
.GetCachedSolidBrushScope();
133
&& Control.
BackColor
.A == byte.MaxValue
134
? Control.
BackColor
135
: Control.Parent?.BackColor ?? Control.
BackColor
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (5)
66
: new ColorOptions(deviceContext, Control.ForeColor, Control.
BackColor
)
100
: Control.
BackColor
!= Forms.Control.DefaultBackColor;
107
Control.
BackColor
);
150
Color parentBackColor = Control.Parent?.BackColor ?? Control.
BackColor
;
212
new(deviceContext, Control.ForeColor, Control.
BackColor
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (2)
92
if (owner.
BackColor
!= Control.DefaultBackColor)
94
return owner.
BackColor
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (8)
84
bool hasTransparentBackColor = Control.
BackColor
.HasTransparency();
88
using var backBrush = Control.
BackColor
.GetCachedSolidBrushScope();
97
Control.
BackColor
);
99
if (useExplicitBackColor && hasTransparentBackColor && Control.
BackColor
.A > 0)
101
using var backBrush = Control.
BackColor
.GetCachedSolidBrushScope();
133
&& Control.
BackColor
.A == byte.MaxValue
134
? Control.
BackColor
135
: Control.Parent?.BackColor ?? Control.
BackColor
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
163
BackColor
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (10)
18
if (Control.
BackColor
!= SystemColors.Control && SystemInformation.HighContrast)
22
Color c = ControlPaint.LightLight(Control.
BackColor
);
32
ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.
BackColor
));
39
Color c = ControlPaint.Light(Control.
BackColor
);
44
Control.
BackColor
, 2, ButtonBorderStyle.Outset,
45
Control.
BackColor
, 2, ButtonBorderStyle.Outset);
51
c = ControlPaint.LightLight(Control.
BackColor
);
61
ControlPaint.DrawBorderSimple(e, r, ControlPaint.Dark(Control.
BackColor
));
91
Color backgroundColor = isHighContrastHighlighted ? SystemColors.Highlight : Control.
BackColor
;
94
using Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.
BackColor
);
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (4)
159
SurfaceColor = button.Parent?.BackColor ?? button.
BackColor
,
191
button.Parent?.BackColor ?? button.
BackColor
);
241
: button.
BackColor
!= Control.DefaultBackColor;
243
? button.
BackColor