90 references to 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)
70BackColor = 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)
19public static Brush Control => FromSystemColor(SystemColors.Control);
System\Drawing\SystemPens.cs (1)
20public static Pen Control => FromSystemColor(SystemColors.Control);
System.Windows.Forms (58)
System\Windows\Forms\Control.cs (3)
1634public static Color DefaultBackColor => SystemColors.Control; 1714color = SystemColors.Control; 8273using CreateBrushScope hbrush = new(SystemColors.Control);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1327get => (_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)
107if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast) 133bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 166? SystemInformation.HighContrast ? SystemColors.ControlLight : SystemColors.Control 225colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor() 236bool stockColor = colors.ButtonFace.ToKnownColor() == SystemColors.Control.ToKnownColor(); 275: 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)
3439using 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)
749SystemColors.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; 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)
18if (Control.BackColor != SystemColors.Control && SystemInformation.HighContrast)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
220_dropDownButton.BackColor = SystemColors.Control; 261BackColor = SystemColors.Control,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
54Pen focusPen2 = new(SystemColors.Control, penWidth)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
178return SystemColors.Control;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
293: 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)
578Renderer.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\ToolStripSystemDarkModeRenderer.cs (2)
47Color c when c == SystemColors.Control => Color.FromArgb(45, 45, 45), 162FillBackground(e.Graphics, bounds, GetDarkModeColor(SystemColors.Control));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
862if (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)
583ControlPaint.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)
1116if (color.ToKnownColor() == SystemColors.Control.ToKnownColor()) 1132bool 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)
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)
200BackColor = 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)
271_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)
135value = SystemColors.Control; 637Control.BackColor = SystemColors.Control;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
48BackColor = Drawing.SystemColors.Control;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
342Color backColor = SystemColors.Control;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
135Color borderColor = SystemColors.Control;
System\Windows\Forms\Design\ShortcutKeysEditor.cs (1)
30BackColor = SystemColors.Control