90 references to Control
PresentationUI (7)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (5)
145
this._tabControl.BackColor = System.Drawing.SystemColors.
Control
;
150
this._summaryTab.BackColor = System.Drawing.SystemColors.
Control
;
218
this._title.BackColor = System.Drawing.SystemColors.
Control
;
345
this._author.BackColor = System.Drawing.SystemColors.
Control
;
422
this._infoTab.BackColor = System.Drawing.SystemColors.
Control
;
MS\Internal\Documents\DialogBaseForm.cs (1)
70
BackColor = System.Drawing.SystemColors.
Control
;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
137
_columnHeaderPanel.BackColor = System.Drawing.SystemColors.
Control
;
System.Drawing.Common (2)
System\Drawing\SystemBrushes.cs (1)
19
public static Brush Control => FromSystemColor(SystemColors.
Control
);
System\Drawing\SystemPens.cs (1)
20
public static Pen Control => FromSystemColor(SystemColors.
Control
);
System.Windows.Forms (58)
System\Windows\Forms\Control.cs (3)
1634
public static Color DefaultBackColor => SystemColors.
Control
;
1714
color = SystemColors.
Control
;
8273
using CreateBrushScope hbrush = new(SystemColors.
Control
);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1327
get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.
Control
)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (2)
40
if (_backColor == SystemColors.
Control
)
88
if (HighContrast && _backColor != SystemColors.
Control
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (6)
107
if (Control.BackColor != SystemColors.
Control
&& SystemInformation.HighContrast)
133
bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
166
? SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.
Control
225
colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor()
236
bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
275
: SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.
Control
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
96
color = SystemColors.
Control
;
100
Color comboColor = SystemInformation.HighContrast ? SystemColors.ControlDark : SystemColors.
Control
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
37
field = SystemColors.
Control
;
72
field = SystemColors.
Control
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3439
using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.
Control
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
184
=> comboBox.Enabled ? comboBox.BackColor : SystemColors.
Control
;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
749
SystemColors.
Control
,
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
248
Color backColor = SystemColors.
Control
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
75
private Color _categorySplitterColor = SystemColors.
Control
;
216
_helpPane.BackColor = SystemColors.
Control
;
3692
=> _commandsPane.SetColors(SystemColors.
Control
, SystemColors.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
18
if (Control.BackColor != SystemColors.
Control
&& SystemInformation.HighContrast)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
220
_dropDownButton.BackColor = SystemColors.
Control
;
261
BackColor = SystemColors.
Control
,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
54
Pen focusPen2 = new(SystemColors.
Control
, penWidth)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
178
return SystemColors.
Control
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
293
: SystemColors.
Control
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
178
public virtual Color ImageMarginGradientEnd => (_usingSystemColors) ? SystemColors.
Control
: FromKnownColor(KnownColors.msocbvcrCBGradVertEnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
578
Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, ImageMargin, SystemColors.
Control
));
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
382
return SystemColors.
Control
.ToArgb() == Color.Black.ToArgb();
473
Pen focusPen2 = new(SystemColors.
Control
, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
715
image.MakeTransparent(SystemColors.
Control
);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (2)
65
_backColor = SystemColors.
Control
;
85
_backColor = SystemColors.
Control
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (2)
47
Color c when c == SystemColors.
Control
=> Color.FromArgb(45, 45, 45),
162
FillBackground(e.Graphics, bounds, GetDarkModeColor(SystemColors.
Control
));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
862
if (vsRenderer is null || (item.BackColor != SystemColors.
Control
))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
250
innerBorderColor = SystemColors.
Control
;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
583
ControlPaint.DrawBorderSimple(e, editBounds, SystemColors.
Control
);
System\Windows\Forms\DarkProfessionalColors.cs (8)
29
=> SystemColors.
Control
;
32
=> SystemColors.
Control
;
35
=> SystemColors.
Control
;
38
=> SystemColors.
Control
;
41
=> SystemColors.
Control
;
44
=> SystemColors.
Control
;
47
=> SystemColors.
Control
;
50
=> SystemColors.
Control
;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (3)
30
BackColor = SystemColors.
Control
;
232
(COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Control
),
267
COLORREF oldBackColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Control
));
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1116
if (color.ToKnownColor() == SystemColors.
Control
.ToKnownColor())
1132
bool stockColor = color.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
1155
: SystemColors.
Control
).GetCachedPenScope();
1426
=> DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.
Control
);
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (1)
29
_isSystemColors_Control = color.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
System\Windows\Forms\Rendering\TextRenderer.cs (1)
558
return ControlPaint.IsDarker(backColor, SystemColors.
Control
)
System.Windows.Forms.Design (23)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
172
public Color GradientDarkColor { get; } = SystemColors.
Control
;
174
public Color GradientLightColor { get; } = SystemColors.
Control
;
System\Drawing\Design\ColorEditor.ColorPalette.cs (6)
70
BackColor = SystemColors.
Control
;
398
SystemColors.
Control
);
404
SystemColors.
Control
, 2, ButtonBorderStyle.Inset,
405
SystemColors.
Control
, 2, ButtonBorderStyle.Inset,
406
SystemColors.
Control
, 2, ButtonBorderStyle.Inset,
407
SystemColors.
Control
, 2, ButtonBorderStyle.Inset);
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
110
BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
200
BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
34
BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
344
BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\DesignerFrame.cs (1)
271
_splitter.BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\DesignerUtils.cs (2)
398
gDest.Clear(SystemColors.
Control
);
431
g.Clear(SystemColors.
Control
);
System\Windows\Forms\Design\DockEditor.DockUI.cs (2)
187
BackColor = SystemColors.
Control
;
295
BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
135
value = SystemColors.
Control
;
637
Control.BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
48
BackColor = Drawing.SystemColors.
Control
;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342
Color backColor = SystemColors.
Control
;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
135
Color borderColor = SystemColors.
Control
;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30
BackColor = SystemColors.
Control