164 references to Window
DesignSurface (1)
MainForm.Designer.cs (1)
72
this.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)
39
yield return (unchecked((int)0x80000005), SystemColors.
Window
);
131
yield return ("window", SystemColors.
Window
);
System\Drawing\SystemBrushesTests.cs (1)
40
yield return Brush(() => SystemBrushes.Window, SystemColors.
Window
);
System\Drawing\SystemPensTest.cs (1)
42
yield return Pen(() => SystemPens.Window, SystemColors.
Window
);
System.Windows.Forms (38)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3336
qaContainer.colorBack = GetOleColorFromColor(SystemColors.
Window
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
98
else 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)
258
get => 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;
180
return focused ? SystemColors.ControlDark : SystemColors.
Window
;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
35
if (windowColor != SystemColors.
Window
)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
356
private static readonly Color s_defaultBackColor = SystemColors.
Window
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (2)
38
protected static readonly Color DefaultMonthBackColor = SystemColors.
Window
;
130
get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.
Window
;
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
116
int r = (SystemColors.
Window
.R + SystemColors.WindowText.R + 1) / 2;
118
int b = (SystemColors.
Window
.B + SystemColors.WindowText.B + 1) / 2;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
163
return SystemColors.
Window
;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
107
private Color _odCacheBackColor = SystemColors.
Window
;
348
get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.
Window
;
4939
if (c != SystemColors.
Window
|| Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
291
return SystemColors.
Window
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
80
return _owner?._listView?.BackColor ?? SystemColors.
Window
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
205
return SystemColors.
Window
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
75
Color c = (ARGB)SystemColors.
Window
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
138
BackColor = SystemColors.
Window
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
296
return SystemColors.
Window
;
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
31
if (windowColor != SystemColors.
Window
)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (5)
346
SystemColors.
Window
,
347
GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.
Window
, 160),
351
SystemColors.
Window
,
352
GetAlphaBlendedColor(screen, SystemColors.Highlight, SystemColors.
Window
, 80),
374
Color window = SystemColors.
Window
;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (2)
48
return (comboBox.Enabled) ? SystemColors.
Window
: GetColorTable(comboBox as ToolStripComboBoxControl).ComboBoxBorder;
65
: SystemColors.
Window
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
198
get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.
Window
;
1885
if (c != SystemColors.
Window
|| Application.IsDarkModeEnabled)
System\Windows\Forms\Help\Help.cs (1)
85
clrBackground = 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)
579
Color backColor = SystemColors.
Window
;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
22
BackColor = SystemColors.
Window
;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
172
_readOnlyTextBoxLabel.BackColor = SystemColors.
Window
;
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
393
Color cw = SystemColors.
Window
;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
177
BackColor = SystemColors.
Window
;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
94
_tableLayoutPanel.BackColor = SystemColors.
Window
;
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
151
BackColor = SystemColors.
Window
,
171
BackColor = SystemColors.
Window
,
190
BackColor = SystemColors.
Window
,
237
BackColor = SystemColors.
Window
,
278
BackColor = SystemColors.
Window
,
296
BackColor = SystemColors.
Window
,
322
BackColor = SystemColors.
Window
,
1591
_helpTextCtrl.BackColor = SystemColors.
Window
;
System\Windows\Forms\Design\DesignerUtils.cs (4)
28
PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Window
));
34
PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Window
));
173
s_grabHandleFillBrushPrimary = PInvokeCore.CreateSolidBrush((COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Window
));
182
s_grabHandlePen = PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.
Window
));
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
393
BackColor = SystemColors.
Window
,
System.Windows.Forms.Tests (96)
System\Windows\Forms\ComboBoxTests.cs (6)
36
Assert.Equal(SystemColors.
Window
, control.BackColor);
167
yield return new object[] { Color.Empty, SystemColors.
Window
};
190
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
268
Assert.Equal(SystemColors.
Window
, control.BackColor);
290
Assert.Equal(SystemColors.
Window
, control.BackColor);
306
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
35
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\DateTimePickerTests.cs (2)
33
Assert.Equal(SystemColors.
Window
, control.BackColor);
41
Assert.Equal(SystemColors.
Window
, control.CalendarMonthBackground);
System\Windows\Forms\DomainUpDownTests.cs (1)
45
_sub.BackColor.Should().Be(SystemColors.
Window
);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
16
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.
Window
};
18
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.
Window
};
19
yield 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)
29
Assert.Equal(SystemColors.
Window
, control.BackColor);
351
yield return new object[] { Color.Empty, SystemColors.
Window
};
374
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
432
Assert.Equal(SystemColors.
Window
, control.BackColor);
454
Assert.Equal(SystemColors.
Window
, control.BackColor);
470
Assert.Equal(SystemColors.
Window
, control.BackColor);
5980
Assert.Equal(SystemColors.
Window
, control.BackColor);
5985
Assert.Equal(SystemColors.
Window
, control.BackColor);
5989
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\ListViewItemTests.cs (32)
18
Assert.Equal(SystemColors.
Window
, item.BackColor);
46
yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
47
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
48
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
84
yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
85
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
86
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.
Window
, string.Empty };
122
yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
123
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
124
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
160
yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
161
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
162
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
208
Assert.Equal(SystemColors.
Window
, item.BackColor);
245
Assert.Equal(SystemColors.
Window
, item.BackColor);
283
Assert.Equal(SystemColors.
Window
, item.BackColor);
321
Assert.Equal(SystemColors.
Window
, item.BackColor);
358
Assert.Equal(SystemColors.
Window
, item.BackColor);
396
Assert.Equal(SystemColors.
Window
, item.BackColor);
434
Assert.Equal(SystemColors.
Window
, item.BackColor);
471
Assert.Equal(SystemColors.
Window
, item.BackColor);
509
Assert.Equal(SystemColors.
Window
, item.BackColor);
547
Assert.Equal(SystemColors.
Window
, item.BackColor);
585
Assert.Equal(SystemColors.
Window
, item.BackColor);
622
Assert.Equal(SystemColors.
Window
, item.BackColor);
660
Assert.Equal(SystemColors.
Window
, item.BackColor);
698
Assert.Equal(SystemColors.
Window
, item.BackColor);
735
Assert.Equal(SystemColors.
Window
, item.BackColor);
774
Assert.Equal(SystemColors.
Window
, item.BackColor);
804
Assert.Equal(SystemColors.
Window
, item.BackColor);
851
yield return new object[] { Color.Empty, SystemColors.
Window
};
870
Assert.Equal(SystemColors.
Window
, item.BackColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
259
yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
389
yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
};
System\Windows\Forms\ListViewSubItemTests.cs (13)
19
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
45
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
56
yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
95
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
106
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
110
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
131
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
137
yield return new object[] { Color.Empty, SystemColors.
Window
};
231
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
544
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
549
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
561
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
566
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
System\Windows\Forms\ListViewTests.cs (4)
35
Assert.Equal(SystemColors.
Window
, control.BackColor);
454
yield return new object[] { Color.Empty, SystemColors.
Window
};
477
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
545
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
32
Assert.Equal(SystemColors.
Window
, control.BackColor);
283
yield return new object[] { Color.Empty, SystemColors.
Window
};
306
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
364
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\PropertyGridTests.cs (3)
164
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
3262
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
3278
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
System\Windows\Forms\RichTextBoxTests.cs (5)
39
Assert.Equal(SystemColors.
Window
, control.BackColor);
648
yield return new object[] { Color.Empty, SystemColors.
Window
};
729
Assert.Equal(SystemColors.
Window
, control.BackColor);
3831
Assert.Equal(SystemColors.
Window
, control.SelectionBackColor);
3933
yield return new object[] { Color.Empty, SystemColors.
Window
};
System\Windows\Forms\TreeViewTests.cs (4)
27
Assert.Equal(SystemColors.
Window
, control.BackColor);
700
yield return new object[] { Color.Empty, SystemColors.
Window
};
723
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
781
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (4)
31
Assert.Equal(SystemColors.
Window
, control.BackColor);
512
yield return new object[] { Color.Empty, SystemColors.
Window
};
535
yield return new object[] { Color.Empty, SystemColors.
Window
, 1 };
592
Assert.Equal(SystemColors.
Window
, control.BackColor);
TextBoxBaseTests.cs (2)
385
yield return new object[] { Color.Empty, SystemColors.
Window
};
431
Assert.Equal(SystemColors.
Window
, control.BackColor);
TextBoxTests.cs (1)
34
Assert.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)
132
this.richTextBox1.BackColor = System.Drawing.SystemColors.
Window
;
DataBindingExample.Designer.cs (1)
168
this.richTextBox1.BackColor = System.Drawing.SystemColors.
Window
;
WinFormsControlsTest (2)
MultipleControls.Designer.cs (2)
225
this.checkedListBox1.BackColor = System.Drawing.SystemColors.
Window
;
281
this.checkedListBox2.BackColor = System.Drawing.SystemColors.
Window
;