163 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)
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)
1545
public static Color DefaultBackColor => SystemColors.
Control
;
1625
color = SystemColors.
Control
;
8194
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)
3455
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)
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)
564
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)
802
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)
1081
if (color.ToKnownColor() == SystemColors.
Control
.ToKnownColor())
1097
bool stockColor = color.ToKnownColor() == SystemColors.
Control
.ToKnownColor();
1120
: SystemColors.
Control
).GetCachedPenScope();
1394
=> 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
;
679
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.Design.Tests (1)
System\Windows\Forms\Design\DataGridViewColumnTypePickerTests.cs (1)
34
_picker.BackColor.Should().Be(SystemColors.
Control
);
System.Windows.Forms.Tests (62)
NumericUpDownTests.cs (1)
92
State.Pen(1, SystemColors.
Control
, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ButtonRenderingTests.cs (4)
62
State.PenColor(SystemColors.
Control
)),
65
State.PenColor(SystemColors.
Control
)),
148
State.PenColor(SystemColors.
Control
)),
151
State.PenColor(SystemColors.
Control
)),
System\Windows\Forms\ControlPaintTests.cs (25)
303
yield return new object[] { SystemColors.
Control
, Color.FromArgb(255, 133, 133, 133) };
336
yield return new object[] { SystemColors.
Control
, -1.5f, Color.FromArgb(255, 242, 242, 242) };
356
yield return new object[] { SystemColors.
Control
, -1f, Color.FromArgb(255, 215, 215, 215) };
376
yield return new object[] { SystemColors.
Control
, -0.5f, Color.FromArgb(255, 187, 187, 187) };
396
yield return new object[] { SystemColors.
Control
, -0.25f, Color.FromArgb(255, 173, 173, 173) };
416
yield return new object[] { SystemColors.
Control
, 0f, SystemColors.ControlDark };
436
yield return new object[] { SystemColors.
Control
, 0.25f, Color.FromArgb(255, 147, 147, 147) };
456
yield return new object[] { SystemColors.
Control
, 0.5f, Color.FromArgb(255, 133, 133, 133) };
476
yield return new object[] { SystemColors.
Control
, 1f, SystemColors.ControlDarkDark };
496
yield return new object[] { SystemColors.
Control
, 1.5f, Color.FromArgb(255, 78, 78, 78) };
528
yield return new object[] { SystemColors.
Control
, SystemColors.ControlDarkDark };
548
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
Control
, style };
1686
yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.
Control
, style };
1715
yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.
Control
};
2067
yield return new object[] { SystemColors.
Control
, Color.FromArgb(255, 241, 241, 241) };
2100
yield return new object[] { SystemColors.
Control
, -1.5f, Color.FromArgb(255, 185, 185, 185) };
2120
yield return new object[] { SystemColors.
Control
, -1f, Color.FromArgb(255, 199, 199, 199) };
2140
yield return new object[] { SystemColors.
Control
, -0.5f, Color.FromArgb(255, 213, 213, 213) };
2160
yield return new object[] { SystemColors.
Control
, -0.25f, Color.FromArgb(255, 220, 220, 220) };
2180
yield return new object[] { SystemColors.
Control
, 0f, SystemColors.ControlLight };
2200
yield return new object[] { SystemColors.
Control
, 0.25f, Color.FromArgb(255, 234, 234, 234) };
2220
yield return new object[] { SystemColors.
Control
, 0.5f, Color.FromArgb(255, 241, 241, 241) };
2240
yield return new object[] { SystemColors.
Control
, 1f, SystemColors.ControlLightLight };
2260
yield return new object[] { SystemColors.
Control
, 1.5f, Color.FromArgb(255, 13, 13, 13) };
2292
yield return new object[] { SystemColors.
Control
, SystemColors.ControlLightLight };
System\Windows\Forms\ControlPaintTests.Rendering.cs (10)
103
ControlPaint.DrawBorder(graphics, bounds, SystemColors.
Control
, ButtonBorderStyle.Inset);
120
State.Pen(16, ControlPaint.DarkDark(SystemColors.
Control
), penStyle),
126
State.Pen(16, ControlPaint.DarkDark(SystemColors.
Control
), penStyle),
132
State.Pen(16, ControlPaint.LightLight(SystemColors.
Control
), penStyle),
138
State.Pen(16, ControlPaint.LightLight(SystemColors.
Control
), penStyle),
144
State.Pen(16, ControlPaint.Light(SystemColors.
Control
), penStyle),
150
State.Pen(16, ControlPaint.Light(SystemColors.
Control
), penStyle),
252
ControlPaint.DrawBorder(graphics, bounds, SystemColors.
Control
, ButtonBorderStyle.Outset);
295
State.Pen(16, SystemColors.
Control
, penStyle),
301
State.Pen(16, SystemColors.
Control
, penStyle),
System\Windows\Forms\ControlTests.cs (1)
483
Assert.Equal(SystemColors.
Control
, Control.DefaultBackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
766
yield return new object[] { customStyle, font, Color.Gray, SystemColors.
Control
, Color.Green, false, HorizontalAlignment.Left, false };
System\Windows\Forms\PropertyGridTests.cs (9)
59
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
64
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
109
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
841
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
857
Assert.Equal(SystemColors.
Control
, control.CategorySplitterColor);
1004
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
1020
Assert.Equal(SystemColors.
Control
, control.CommandsBackColor);
1792
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
1808
Assert.Equal(SystemColors.
Control
, control.HelpBackColor);
System\Windows\Forms\TabControlTests.cs (8)
543
Assert.Equal(SystemColors.
Control
, control.BackColor);
548
Assert.Equal(SystemColors.
Control
, control.BackColor);
566
Assert.Equal(SystemColors.
Control
, control.BackColor);
574
Assert.Equal(SystemColors.
Control
, control.BackColor);
597
Assert.Equal(SystemColors.
Control
, control.BackColor);
602
Assert.Equal(SystemColors.
Control
, control.BackColor);
607
Assert.Equal(SystemColors.
Control
, control.BackColor);
613
Assert.Equal(SystemColors.
Control
, control.BackColor);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
31
yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.
Control
};
54
yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.
Control
};
TextBoxBaseTests.cs (1)
380
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
);
TestPassApp (1)
ContainerControls2.Designer.cs (1)
290
groupBox5.ForeColor = 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
;