164 references to Window
Accessibility_Core_App (2)
CommonControl2.Designer.cs (1)
132this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
DataBindingExample.Designer.cs (1)
168this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
DesignSurface (1)
MainForm.Designer.cs (1)
74this.splitContainer.Panel1.BackColor = System.Drawing.SystemColors.Window;
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (1)
147_listBoxSummary.BackColor = System.Drawing.SystemColors.Window;
System.Drawing.Common.Tests (4)
System\Drawing\ColorTranslatorTests.cs (2)
39yield return (unchecked((int)0x80000005), SystemColors.Window); 131yield return ("window", SystemColors.Window);
System\Drawing\SystemBrushesTests.cs (1)
40yield return Brush(() => SystemBrushes.Window, SystemColors.Window);
System\Drawing\SystemPensTest.cs (1)
42yield return Pen(() => SystemPens.Window, SystemColors.Window);
System.Windows.Forms (38)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3336qaContainer.colorBack = GetOleColorFromColor(SystemColors.Window);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
98else if (controlCheckState == CheckState.Indeterminate && checkBackground == SystemColors.Window && disabledColors) 102(byte)((comboColor.R + SystemColors.Window.R) / 2), 103(byte)((comboColor.G + SystemColors.Window.G) / 2), 104(byte)((comboColor.B + SystemColors.Window.B) / 2));
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
258get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 3734&& !(SystemInformation.HighContrast && BackColor == SystemColors.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
190=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 199return focused ? SystemColors.ControlDark : SystemColors.Window;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
35if (windowColor != SystemColors.Window)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
356private static readonly Color s_defaultBackColor = SystemColors.Window;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
38protected static readonly Color DefaultMonthBackColor = SystemColors.Window; 130get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
116int r = (SystemColors.Window.R + SystemColors.WindowText.R + 1) / 2; 118int b = (SystemColors.Window.B + SystemColors.WindowText.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
163return SystemColors.Window;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
107private Color _odCacheBackColor = SystemColors.Window; 348get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 4939if (c != SystemColors.Window || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
291return SystemColors.Window;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
80return _owner?._listView?.BackColor ?? SystemColors.Window;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
205return SystemColors.Window;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
75Color c = (ARGB)SystemColors.Window;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
138BackColor = SystemColors.Window;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
296return SystemColors.Window;
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
31if (windowColor != SystemColors.Window)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (5)
346SystemColors.Window, 347GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 160), 351SystemColors.Window, 352GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.Window, 80), 374Color window = SystemColors.Window;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (2)
48return (comboBox.Enabled) ? SystemColors.Window : GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder; 65: SystemColors.Window;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
198get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 1885if (c != SystemColors.Window || Application.IsDarkModeEnabled)
System\Windows\Forms\Help\Help.cs (1)
85clrBackground = SystemColors.Window
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
32: this(graphics, font, rect, index, state, SystemColors.WindowText, SystemColors.Window) 62: this(hdc, font, rect, index, state, SystemColors.WindowText, SystemColors.Window)
System.Windows.Forms.Design (19)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
579Color backColor = SystemColors.Window;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
22BackColor = SystemColors.Window;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
172_readOnlyTextBoxLabel.BackColor = SystemColors.Window;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
393Color cw = SystemColors.Window;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
177BackColor = SystemColors.Window;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
94_tableLayoutPanel.BackColor = SystemColors.Window;
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
151BackColor = SystemColors.Window, 171BackColor = SystemColors.Window, 190BackColor = SystemColors.Window, 237BackColor = SystemColors.Window, 278BackColor = SystemColors.Window, 296BackColor = SystemColors.Window, 322BackColor = SystemColors.Window, 1591_helpTextCtrl.BackColor = SystemColors.Window;
System\Windows\Forms\Design\DesignerUtils.cs (4)
28PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 34PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 173s_grabHandleFillBrushPrimary = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window)); 182s_grabHandlePen = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
393BackColor = SystemColors.Window,
System.Windows.Forms.Tests (96)
System\Windows\Forms\ComboBoxTests.cs (6)
34Assert.Equal(SystemColors.Window, control.BackColor); 165yield return new object[] { Color.Empty, SystemColors.Window }; 188yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 266Assert.Equal(SystemColors.Window, control.BackColor); 288Assert.Equal(SystemColors.Window, control.BackColor); 304Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
33Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\DateTimePickerTests.cs (2)
31Assert.Equal(SystemColors.Window, control.BackColor); 39Assert.Equal(SystemColors.Window, control.CalendarMonthBackground);
System\Windows\Forms\DomainUpDownTests.cs (1)
43_sub.BackColor.Should().Be(SystemColors.Window);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
14yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 17yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListBoxTests.cs (9)
27Assert.Equal(SystemColors.Window, control.BackColor); 349yield return new object[] { Color.Empty, SystemColors.Window }; 372yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 430Assert.Equal(SystemColors.Window, control.BackColor); 452Assert.Equal(SystemColors.Window, control.BackColor); 468Assert.Equal(SystemColors.Window, control.BackColor); 5978Assert.Equal(SystemColors.Window, control.BackColor); 5983Assert.Equal(SystemColors.Window, control.BackColor); 5987Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\ListViewItemTests.cs (32)
16Assert.Equal(SystemColors.Window, item.BackColor); 44yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 45yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 46yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 82yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 83yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 120yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 121yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 158yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 159yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 206Assert.Equal(SystemColors.Window, item.BackColor); 243Assert.Equal(SystemColors.Window, item.BackColor); 281Assert.Equal(SystemColors.Window, item.BackColor); 319Assert.Equal(SystemColors.Window, item.BackColor); 356Assert.Equal(SystemColors.Window, item.BackColor); 394Assert.Equal(SystemColors.Window, item.BackColor); 432Assert.Equal(SystemColors.Window, item.BackColor); 469Assert.Equal(SystemColors.Window, item.BackColor); 507Assert.Equal(SystemColors.Window, item.BackColor); 545Assert.Equal(SystemColors.Window, item.BackColor); 583Assert.Equal(SystemColors.Window, item.BackColor); 620Assert.Equal(SystemColors.Window, item.BackColor); 658Assert.Equal(SystemColors.Window, item.BackColor); 696Assert.Equal(SystemColors.Window, item.BackColor); 733Assert.Equal(SystemColors.Window, item.BackColor); 772Assert.Equal(SystemColors.Window, item.BackColor); 802Assert.Equal(SystemColors.Window, item.BackColor); 849yield return new object[] { Color.Empty, SystemColors.Window }; 868Assert.Equal(SystemColors.Window, item.BackColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
257yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 387yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (13)
17Assert.Equal(SystemColors.Window, subItem.BackColor); 43Assert.Equal(SystemColors.Window, subItem.BackColor); 54yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 93Assert.Equal(SystemColors.Window, subItem.BackColor); 104Assert.Equal(SystemColors.Window, subItem.BackColor); 108Assert.Equal(SystemColors.Window, subItem.BackColor); 129Assert.Equal(SystemColors.Window, subItem.BackColor); 135yield return new object[] { Color.Empty, SystemColors.Window }; 229Assert.Equal(SystemColors.Window, subItem.BackColor); 542Assert.Equal(SystemColors.Window, subItem.BackColor); 547Assert.Equal(SystemColors.Window, subItem.BackColor); 559Assert.Equal(SystemColors.Window, subItem.BackColor); 564Assert.Equal(SystemColors.Window, subItem.BackColor);
System\Windows\Forms\ListViewTests.cs (4)
33Assert.Equal(SystemColors.Window, control.BackColor); 452yield return new object[] { Color.Empty, SystemColors.Window }; 475yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 543Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
30Assert.Equal(SystemColors.Window, control.BackColor); 281yield return new object[] { Color.Empty, SystemColors.Window }; 304yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 362Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\PropertyGridTests.cs (3)
162Assert.Equal(SystemColors.Window, control.ViewBackColor); 3260Assert.Equal(SystemColors.Window, control.ViewBackColor); 3276Assert.Equal(SystemColors.Window, control.ViewBackColor);
System\Windows\Forms\RichTextBoxTests.cs (5)
37Assert.Equal(SystemColors.Window, control.BackColor); 646yield return new object[] { Color.Empty, SystemColors.Window }; 727Assert.Equal(SystemColors.Window, control.BackColor); 3829Assert.Equal(SystemColors.Window, control.SelectionBackColor); 3931yield return new object[] { Color.Empty, SystemColors.Window };
System\Windows\Forms\TreeViewTests.cs (4)
25Assert.Equal(SystemColors.Window, control.BackColor); 698yield return new object[] { Color.Empty, SystemColors.Window }; 721yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 779Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (4)
29Assert.Equal(SystemColors.Window, control.BackColor); 510yield return new object[] { Color.Empty, SystemColors.Window }; 533yield return new object[] { Color.Empty, SystemColors.Window, 1 }; 590Assert.Equal(SystemColors.Window, control.BackColor);
TextBoxBaseTests.cs (2)
383yield return new object[] { Color.Empty, SystemColors.Window }; 429Assert.Equal(SystemColors.Window, control.BackColor);
TextBoxTests.cs (1)
32Assert.Equal(SystemColors.Window, control.BackColor);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window);
WinFormsControlsTest (2)
MultipleControls.Designer.cs (2)
225this.checkedListBox1.BackColor = System.Drawing.SystemColors.Window; 281this.checkedListBox2.BackColor = System.Drawing.SystemColors.Window;