162 references to Control
Accessibility_Core_App (1)
ContainerControls2.Designer.cs (1)
290
groupBox5.ForeColor = SystemColors.
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)
71
BackColor = System.Drawing.SystemColors.
Control
;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
137
_columnHeaderPanel.BackColor = System.Drawing.SystemColors.
Control
;
System.Drawing.Common.Tests (5)
System\Drawing\ColorTranslatorTests.cs (3)
16
yield return (unchecked((int)0x8000000F), SystemColors.
Control
);
115
yield return ("buttonface", SystemColors.
Control
);
178
yield return new object[] { "threedface", SystemColors.
Control
};
System\Drawing\SystemBrushesTests.cs (1)
17
yield return Brush(() => SystemBrushes.Control, SystemColors.
Control
);
System\Drawing\SystemPensTest.cs (1)
19
yield return Pen(() => SystemPens.Control, SystemColors.
Control
);
System.Windows.Forms (56)
System\Windows\Forms\Control.cs (3)
1546
public static Color DefaultBackColor => SystemColors.
Control
;
1626
color = SystemColors.
Control
;
8160
using CreateBrushScope hbrush = new(SystemColors.
Control
);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1265
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)
105
if (Control.BackColor != SystemColors.
Control
&& SystemInformation.HighContrast)
131
bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
164
? SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.
Control
223
colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor()
234
bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
273
: 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)
3453
using var hbrush = new CreateBrushScope(ParentInternal?.BackColor ?? SystemColors.
Control
);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
203
=> comboBox.Enabled ? comboBox.BackColor : SystemColors.
Control
;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
752
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
;
214
_helpPane.BackColor = SystemColors.
Control
;
3700
=> _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)
208
_dropDownButton.BackColor = SystemColors.
Control
;
244
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)
177
return SystemColors.
Control
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
292
return 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)
568
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\ToolStripSystemRenderer.cs (1)
803
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)
585
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)
1084
if (color.ToKnownColor() == SystemColors.
Control
.ToKnownColor())
1100
bool stockColor = color.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
1123
: SystemColors.
Control
).GetCachedPenScope();
1398
=> 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)
193
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)
274
_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)
138
value = SystemColors.
Control
;
680
Control.BackColor = SystemColors.
Control
;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
50
BackColor = Drawing.SystemColors.
Control
;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342
Color backColor = SystemColors.
Control
;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
138
Color borderColor = SystemColors.
Control
;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30
BackColor = SystemColors.
Control
System.Windows.Forms.Tests (62)
NumericUpDownTests.cs (1)
90
State.Pen(1, SystemColors.
Control
, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ButtonRenderingTests.cs (4)
60
State.PenColor(SystemColors.
Control
)),
63
State.PenColor(SystemColors.
Control
)),
146
State.PenColor(SystemColors.
Control
)),
149
State.PenColor(SystemColors.
Control
)),
System\Windows\Forms\ControlPaintTests.cs (25)
301
yield return new object[] { SystemColors.
Control
, Color.FromArgb(255, 133, 133, 133) };
334
yield return new object[] { SystemColors.
Control
, -1.5f, Color.FromArgb(255, 242, 242, 242) };
354
yield return new object[] { SystemColors.
Control
, -1f, Color.FromArgb(255, 215, 215, 215) };
374
yield return new object[] { SystemColors.
Control
, -0.5f, Color.FromArgb(255, 187, 187, 187) };
394
yield return new object[] { SystemColors.
Control
, -0.25f, Color.FromArgb(255, 173, 173, 173) };
414
yield return new object[] { SystemColors.
Control
, 0f, SystemColors.ControlDark };
434
yield return new object[] { SystemColors.
Control
, 0.25f, Color.FromArgb(255, 147, 147, 147) };
454
yield return new object[] { SystemColors.
Control
, 0.5f, Color.FromArgb(255, 133, 133, 133) };
474
yield return new object[] { SystemColors.
Control
, 1f, SystemColors.ControlDarkDark };
494
yield return new object[] { SystemColors.
Control
, 1.5f, Color.FromArgb(255, 78, 78, 78) };
526
yield return new object[] { SystemColors.
Control
, SystemColors.ControlDarkDark };
546
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
Control
, style };
1684
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
Control
, style };
1713
yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.
Control
};
2065
yield return new object[] { SystemColors.
Control
, Color.FromArgb(255, 241, 241, 241) };
2098
yield return new object[] { SystemColors.
Control
, -1.5f, Color.FromArgb(255, 185, 185, 185) };
2118
yield return new object[] { SystemColors.
Control
, -1f, Color.FromArgb(255, 199, 199, 199) };
2138
yield return new object[] { SystemColors.
Control
, -0.5f, Color.FromArgb(255, 213, 213, 213) };
2158
yield return new object[] { SystemColors.
Control
, -0.25f, Color.FromArgb(255, 220, 220, 220) };
2178
yield return new object[] { SystemColors.
Control
, 0f, SystemColors.ControlLight };
2198
yield return new object[] { SystemColors.
Control
, 0.25f, Color.FromArgb(255, 234, 234, 234) };
2218
yield return new object[] { SystemColors.
Control
, 0.5f, Color.FromArgb(255, 241, 241, 241) };
2238
yield return new object[] { SystemColors.
Control
, 1f, SystemColors.ControlLightLight };
2258
yield return new object[] { SystemColors.
Control
, 1.5f, Color.FromArgb(255, 13, 13, 13) };
2290
yield return new object[] { SystemColors.
Control
, SystemColors.ControlLightLight };
System\Windows\Forms\ControlPaintTests.Rendering.cs (10)
101
ControlPaint.DrawBorder(graphics, bounds, SystemColors.
Control
, ButtonBorderStyle.Inset);
118
State.Pen(16, ControlPaint.DarkDark(SystemColors.
Control
), penStyle),
124
State.Pen(16, ControlPaint.DarkDark(SystemColors.
Control
), penStyle),
130
State.Pen(16, ControlPaint.LightLight(SystemColors.
Control
), penStyle),
136
State.Pen(16, ControlPaint.LightLight(SystemColors.
Control
), penStyle),
142
State.Pen(16, ControlPaint.Light(SystemColors.
Control
), penStyle),
148
State.Pen(16, ControlPaint.Light(SystemColors.
Control
), penStyle),
250
ControlPaint.DrawBorder(graphics, bounds, SystemColors.
Control
, ButtonBorderStyle.Outset);
293
State.Pen(16, SystemColors.
Control
, penStyle),
299
State.Pen(16, SystemColors.
Control
, penStyle),
System\Windows\Forms\ControlTests.cs (1)
481
Assert.Equal(SystemColors.
Control
, Control.DefaultBackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
764
yield return new object[] { customStyle, font, Color.Gray, SystemColors.
Control
, Color.Green, false, HorizontalAlignment.Left, false };
System\Windows\Forms\PropertyGridTests.cs (9)
57
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
62
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
107
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
839
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
855
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
1002
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
1018
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
1790
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
1806
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
System\Windows\Forms\TabControlTests.cs (8)
541
Assert.Equal(SystemColors.
Control
, control.BackColor);
546
Assert.Equal(SystemColors.
Control
, control.BackColor);
564
Assert.Equal(SystemColors.
Control
, control.BackColor);
572
Assert.Equal(SystemColors.
Control
, control.BackColor);
595
Assert.Equal(SystemColors.
Control
, control.BackColor);
600
Assert.Equal(SystemColors.
Control
, control.BackColor);
605
Assert.Equal(SystemColors.
Control
, control.BackColor);
611
Assert.Equal(SystemColors.
Control
, control.BackColor);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
29
yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.
Control
};
52
yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.
Control
};
TextBoxBaseTests.cs (1)
378
Assert.Equal(SystemColors.
Control
, control.BackColor);
System.Windows.Forms.UI.IntegrationTests (4)
PropertyGridTests.cs (4)
152
_propertyGrid.CategorySplitterColor.Should().Be(SystemColors.
Control
);
189
_propertyGrid.BackColor.Should().Be(SystemColors.
Control
);
208
_propertyGrid.CommandsBackColor.Should().Be(SystemColors.
Control
);
249
_propertyGrid.HelpBackColor.Should().Be(SystemColors.
Control
);
WinFormsControlsTest (4)
DataGridViewTest.Designer.cs (1)
57
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.
Control
;
Dialogs.Designer.cs (1)
52
this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.
Control
;
MessageBoxes.Designer.cs (1)
40
this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.
Control
;
PropertyGrid.Designer.cs (1)
39
this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.
Control
;