164 references to Window
DesignSurface (1)
MainForm.Designer.cs (1)
72this.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)
171=> comboBox.Enabled ? SystemColors.Window : SystemColors.ControlDark; 180return 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)
36Assert.Equal(SystemColors.Window, control.BackColor); 167yield return new object[] { Color.Empty, SystemColors.Window }; 190yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 268Assert.Equal(SystemColors.Window, control.BackColor); 290Assert.Equal(SystemColors.Window, control.BackColor); 306Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
35Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\DateTimePickerTests.cs (2)
33Assert.Equal(SystemColors.Window, control.BackColor); 41Assert.Equal(SystemColors.Window, control.CalendarMonthBackground);
System\Windows\Forms\DomainUpDownTests.cs (1)
45_sub.BackColor.Should().Be(SystemColors.Window);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
16yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.Window }; 18yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.Window }; 19yield 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)
29Assert.Equal(SystemColors.Window, control.BackColor); 351yield return new object[] { Color.Empty, SystemColors.Window }; 374yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 432Assert.Equal(SystemColors.Window, control.BackColor); 454Assert.Equal(SystemColors.Window, control.BackColor); 470Assert.Equal(SystemColors.Window, control.BackColor); 5980Assert.Equal(SystemColors.Window, control.BackColor); 5985Assert.Equal(SystemColors.Window, control.BackColor); 5989Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\ListViewItemTests.cs (32)
18Assert.Equal(SystemColors.Window, item.BackColor); 46yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 47yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 48yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 85yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 86yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 123yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 124yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 161yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 162yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 208Assert.Equal(SystemColors.Window, item.BackColor); 245Assert.Equal(SystemColors.Window, item.BackColor); 283Assert.Equal(SystemColors.Window, item.BackColor); 321Assert.Equal(SystemColors.Window, item.BackColor); 358Assert.Equal(SystemColors.Window, item.BackColor); 396Assert.Equal(SystemColors.Window, item.BackColor); 434Assert.Equal(SystemColors.Window, item.BackColor); 471Assert.Equal(SystemColors.Window, item.BackColor); 509Assert.Equal(SystemColors.Window, item.BackColor); 547Assert.Equal(SystemColors.Window, item.BackColor); 585Assert.Equal(SystemColors.Window, item.BackColor); 622Assert.Equal(SystemColors.Window, item.BackColor); 660Assert.Equal(SystemColors.Window, item.BackColor); 698Assert.Equal(SystemColors.Window, item.BackColor); 735Assert.Equal(SystemColors.Window, item.BackColor); 774Assert.Equal(SystemColors.Window, item.BackColor); 804Assert.Equal(SystemColors.Window, item.BackColor); 851yield return new object[] { Color.Empty, SystemColors.Window }; 870Assert.Equal(SystemColors.Window, item.BackColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
259yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 389yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (13)
19Assert.Equal(SystemColors.Window, subItem.BackColor); 45Assert.Equal(SystemColors.Window, subItem.BackColor); 56yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 95Assert.Equal(SystemColors.Window, subItem.BackColor); 106Assert.Equal(SystemColors.Window, subItem.BackColor); 110Assert.Equal(SystemColors.Window, subItem.BackColor); 131Assert.Equal(SystemColors.Window, subItem.BackColor); 137yield return new object[] { Color.Empty, SystemColors.Window }; 231Assert.Equal(SystemColors.Window, subItem.BackColor); 544Assert.Equal(SystemColors.Window, subItem.BackColor); 549Assert.Equal(SystemColors.Window, subItem.BackColor); 561Assert.Equal(SystemColors.Window, subItem.BackColor); 566Assert.Equal(SystemColors.Window, subItem.BackColor);
System\Windows\Forms\ListViewTests.cs (4)
35Assert.Equal(SystemColors.Window, control.BackColor); 454yield return new object[] { Color.Empty, SystemColors.Window }; 477yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 545Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
32Assert.Equal(SystemColors.Window, control.BackColor); 283yield return new object[] { Color.Empty, SystemColors.Window }; 306yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 364Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\PropertyGridTests.cs (3)
164Assert.Equal(SystemColors.Window, control.ViewBackColor); 3262Assert.Equal(SystemColors.Window, control.ViewBackColor); 3278Assert.Equal(SystemColors.Window, control.ViewBackColor);
System\Windows\Forms\RichTextBoxTests.cs (5)
39Assert.Equal(SystemColors.Window, control.BackColor); 648yield return new object[] { Color.Empty, SystemColors.Window }; 729Assert.Equal(SystemColors.Window, control.BackColor); 3831Assert.Equal(SystemColors.Window, control.SelectionBackColor); 3933yield return new object[] { Color.Empty, SystemColors.Window };
System\Windows\Forms\TreeViewTests.cs (4)
27Assert.Equal(SystemColors.Window, control.BackColor); 700yield return new object[] { Color.Empty, SystemColors.Window }; 723yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 781Assert.Equal(SystemColors.Window, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (4)
31Assert.Equal(SystemColors.Window, control.BackColor); 512yield return new object[] { Color.Empty, SystemColors.Window }; 535yield return new object[] { Color.Empty, SystemColors.Window, 1 }; 592Assert.Equal(SystemColors.Window, control.BackColor);
TextBoxBaseTests.cs (2)
385yield return new object[] { Color.Empty, SystemColors.Window }; 431Assert.Equal(SystemColors.Window, control.BackColor);
TextBoxTests.cs (1)
34Assert.Equal(SystemColors.Window, control.BackColor);
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
338_propertyGrid.ViewBackColor.Should().Be(SystemColors.Window);
TestPassApp (2)
CommonControl2.Designer.cs (1)
132this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
DataBindingExample.Designer.cs (1)
168this.richTextBox1.BackColor = System.Drawing.SystemColors.Window;
WinFormsControlsTest (2)
MultipleControls.Designer.cs (2)
225this.checkedListBox1.BackColor = System.Drawing.SystemColors.Window; 281this.checkedListBox2.BackColor = System.Drawing.SystemColors.Window;