162 references to Control
Accessibility_Core_App (1)
ContainerControls2.Designer.cs (1)
290groupBox5.ForeColor = SystemColors.Control;
PresentationUI (7)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (5)
145this._tabControl.BackColor = System.Drawing.SystemColors.Control; 150this._summaryTab.BackColor = System.Drawing.SystemColors.Control; 218this._title.BackColor = System.Drawing.SystemColors.Control; 345this._author.BackColor = System.Drawing.SystemColors.Control; 422this._infoTab.BackColor = System.Drawing.SystemColors.Control;
MS\Internal\Documents\DialogBaseForm.cs (1)
71BackColor = 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)
16yield return (unchecked((int)0x8000000F), SystemColors.Control); 115yield return ("buttonface", SystemColors.Control); 178yield return new object[] { "threedface", SystemColors.Control };
System\Drawing\SystemBrushesTests.cs (1)
17yield return Brush(() => SystemBrushes.Control, SystemColors.Control);
System\Drawing\SystemPensTest.cs (1)
19yield return Pen(() => SystemPens.Control, SystemColors.Control);
System.Windows.Forms (56)
System\Windows\Forms\Control.cs (3)
1546public static Color DefaultBackColor => SystemColors.Control; 1626color = SystemColors.Control; 8160using CreateBrushScope hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1265get => (_isEnableVisualStyleBackgroundSet || (RawBackColor.IsEmpty && (BackColor == SystemColors.Control)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (2)
40if (_backColor == SystemColors.Control) 88if (HighContrast && _backColor != SystemColors.Control)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (6)
105if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 131bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 164? SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.Control 223colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor() 234bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 273: SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (2)
96color = SystemColors.Control; 100Color comboColor = SystemInformation.HighContrast ? SystemColors.ControlDark : SystemColors.Control;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
37field = SystemColors.Control; 72field = SystemColors.Control;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3453using 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)
752SystemColors.Control,
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (1)
248Color backColor = SystemColors.Control;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
75private 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)
18if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
208_dropDownButton.BackColor = SystemColors.Control; 244BackColor = SystemColors.Control,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
54Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
177return SystemColors.Control;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
292return SystemColors.Control;
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
178public virtual Color ImageMarginGradientEnd => (_usingSystemColors) ? SystemColors.Control : FromKnownColor(KnownColors.msocbvcrCBGradVertEnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
568Renderer.DrawImageMargin(new ToolStripRenderEventArgs(e.Graphics, this, ImageMargin, SystemColors.Control));
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
382return SystemColors.Control.ToArgb() == Color.Black.ToArgb(); 473Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
715image.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)
803if (vsRenderer is null || (item.BackColor != SystemColors.Control))
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
250innerBorderColor = SystemColors.Control;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
585ControlPaint.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)
30BackColor = SystemColors.Control; 232(COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control), 267COLORREF oldBackColor = PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Control));
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1084if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1100bool 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)
558return ControlPaint.IsDarker(backColor, SystemColors.Control)
System.Windows.Forms.Design (23)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
172public Color GradientDarkColor { get; } = SystemColors.Control; 174public Color GradientLightColor { get; } = SystemColors.Control;
System\Drawing\Design\ColorEditor.ColorPalette.cs (6)
70BackColor = SystemColors.Control; 398SystemColors.Control); 404SystemColors.Control, 2, ButtonBorderStyle.Inset, 405SystemColors.Control, 2, ButtonBorderStyle.Inset, 406SystemColors.Control, 2, ButtonBorderStyle.Inset, 407SystemColors.Control, 2, ButtonBorderStyle.Inset);
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (1)
110BackColor = SystemColors.Control;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
193BackColor = SystemColors.Control;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
34BackColor = SystemColors.Control;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
344BackColor = SystemColors.Control;
System\Windows\Forms\Design\DesignerFrame.cs (1)
274_splitter.BackColor = SystemColors.Control;
System\Windows\Forms\Design\DesignerUtils.cs (2)
398gDest.Clear(SystemColors.Control); 431g.Clear(SystemColors.Control);
System\Windows\Forms\Design\DockEditor.DockUI.cs (2)
187BackColor = SystemColors.Control; 295BackColor = SystemColors.Control;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
138value = SystemColors.Control; 680Control.BackColor = SystemColors.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
50BackColor = Drawing.SystemColors.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342Color backColor = SystemColors.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
138Color borderColor = SystemColors.Control;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30BackColor = SystemColors.Control
System.Windows.Forms.Tests (62)
NumericUpDownTests.cs (1)
90State.Pen(1, SystemColors.Control, PEN_STYLE.PS_SOLID)),
System\Windows\Forms\ButtonRenderingTests.cs (4)
60State.PenColor(SystemColors.Control)), 63State.PenColor(SystemColors.Control)), 146State.PenColor(SystemColors.Control)), 149State.PenColor(SystemColors.Control)),
System\Windows\Forms\ControlPaintTests.cs (25)
301yield return new object[] { SystemColors.Control, Color.FromArgb(255, 133, 133, 133) }; 334yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 242, 242, 242) }; 354yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 215, 215, 215) }; 374yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 187, 187, 187) }; 394yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 173, 173, 173) }; 414yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlDark }; 434yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 147, 147, 147) }; 454yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 133, 133, 133) }; 474yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlDarkDark }; 494yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 78, 78, 78) }; 526yield return new object[] { SystemColors.Control, SystemColors.ControlDarkDark }; 546yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 1684yield return new object[] { new Rectangle(1, 2, 3, 4), SystemColors.Control, style }; 1713yield return new object[] { new Point(1, 2), new Point(2, 3), SystemColors.Control }; 2065yield return new object[] { SystemColors.Control, Color.FromArgb(255, 241, 241, 241) }; 2098yield return new object[] { SystemColors.Control, -1.5f, Color.FromArgb(255, 185, 185, 185) }; 2118yield return new object[] { SystemColors.Control, -1f, Color.FromArgb(255, 199, 199, 199) }; 2138yield return new object[] { SystemColors.Control, -0.5f, Color.FromArgb(255, 213, 213, 213) }; 2158yield return new object[] { SystemColors.Control, -0.25f, Color.FromArgb(255, 220, 220, 220) }; 2178yield return new object[] { SystemColors.Control, 0f, SystemColors.ControlLight }; 2198yield return new object[] { SystemColors.Control, 0.25f, Color.FromArgb(255, 234, 234, 234) }; 2218yield return new object[] { SystemColors.Control, 0.5f, Color.FromArgb(255, 241, 241, 241) }; 2238yield return new object[] { SystemColors.Control, 1f, SystemColors.ControlLightLight }; 2258yield return new object[] { SystemColors.Control, 1.5f, Color.FromArgb(255, 13, 13, 13) }; 2290yield return new object[] { SystemColors.Control, SystemColors.ControlLightLight };
System\Windows\Forms\ControlPaintTests.Rendering.cs (10)
101ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Inset); 118State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 124State.Pen(16, ControlPaint.DarkDark(SystemColors.Control), penStyle), 130State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 136State.Pen(16, ControlPaint.LightLight(SystemColors.Control), penStyle), 142State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 148State.Pen(16, ControlPaint.Light(SystemColors.Control), penStyle), 250ControlPaint.DrawBorder(graphics, bounds, SystemColors.Control, ButtonBorderStyle.Outset); 293State.Pen(16, SystemColors.Control, penStyle), 299State.Pen(16, SystemColors.Control, penStyle),
System\Windows\Forms\ControlTests.cs (1)
481Assert.Equal(SystemColors.Control, Control.DefaultBackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
764yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.Left, false };
System\Windows\Forms\PropertyGridTests.cs (9)
57Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 62Assert.Equal(SystemColors.Control, control.CommandsBackColor); 107Assert.Equal(SystemColors.Control, control.HelpBackColor); 839Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 855Assert.Equal(SystemColors.Control, control.CategorySplitterColor); 1002Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1018Assert.Equal(SystemColors.Control, control.CommandsBackColor); 1790Assert.Equal(SystemColors.Control, control.HelpBackColor); 1806Assert.Equal(SystemColors.Control, control.HelpBackColor);
System\Windows\Forms\TabControlTests.cs (8)
541Assert.Equal(SystemColors.Control, control.BackColor); 546Assert.Equal(SystemColors.Control, control.BackColor); 564Assert.Equal(SystemColors.Control, control.BackColor); 572Assert.Equal(SystemColors.Control, control.BackColor); 595Assert.Equal(SystemColors.Control, control.BackColor); 600Assert.Equal(SystemColors.Control, control.BackColor); 605Assert.Equal(SystemColors.Control, control.BackColor); 611Assert.Equal(SystemColors.Control, control.BackColor);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
29yield return new object[] { new ToolStrip(), new Rectangle(0, 0, 100, 25), SystemColors.Control }; 52yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control };
TextBoxBaseTests.cs (1)
378Assert.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)
57dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
Dialogs.Designer.cs (1)
52this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;
MessageBoxes.Designer.cs (1)
40this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;
PropertyGrid.Designer.cs (1)
39this.propertyGrid1.CommandsBorderColor = System.Drawing.SystemColors.Control;