164 references to Window
Accessibility_Core_App (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
;
DesignSurface (1)
MainForm.Designer.cs (1)
74
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)
3367
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
;
3732
&& !(SystemInformation.HighContrast && BackColor == SystemColors.
Window
))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
190
=> comboBox.Enabled ? SystemColors.
Window
: SystemColors.ControlDark;
199
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
;
4935
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
,
1589
_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)
34
Assert.Equal(SystemColors.
Window
, control.BackColor);
165
yield return new object[] { Color.Empty, SystemColors.
Window
};
188
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
266
Assert.Equal(SystemColors.
Window
, control.BackColor);
288
Assert.Equal(SystemColors.
Window
, control.BackColor);
304
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
33
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\DateTimePickerTests.cs (2)
31
Assert.Equal(SystemColors.
Window
, control.BackColor);
39
Assert.Equal(SystemColors.
Window
, control.CalendarMonthBackground);
System\Windows\Forms\DomainUpDownTests.cs (1)
43
_sub.BackColor.Should().Be(SystemColors.
Window
);
System\Windows\Forms\DrawItemEventArgsTests.cs (3)
14
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, SystemColors.WindowText, SystemColors.
Window
};
16
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, SystemColors.WindowText, SystemColors.
Window
};
17
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)
27
Assert.Equal(SystemColors.
Window
, control.BackColor);
349
yield return new object[] { Color.Empty, SystemColors.
Window
};
372
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
430
Assert.Equal(SystemColors.
Window
, control.BackColor);
452
Assert.Equal(SystemColors.
Window
, control.BackColor);
468
Assert.Equal(SystemColors.
Window
, control.BackColor);
5978
Assert.Equal(SystemColors.
Window
, control.BackColor);
5983
Assert.Equal(SystemColors.
Window
, control.BackColor);
5987
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\ListViewItemTests.cs (32)
16
Assert.Equal(SystemColors.
Window
, item.BackColor);
44
yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
45
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
46
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
82
yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
83
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
84
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.
Window
, string.Empty };
120
yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
121
yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
122
yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
158
yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
159
yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
160
yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
206
Assert.Equal(SystemColors.
Window
, item.BackColor);
243
Assert.Equal(SystemColors.
Window
, item.BackColor);
281
Assert.Equal(SystemColors.
Window
, item.BackColor);
319
Assert.Equal(SystemColors.
Window
, item.BackColor);
356
Assert.Equal(SystemColors.
Window
, item.BackColor);
394
Assert.Equal(SystemColors.
Window
, item.BackColor);
432
Assert.Equal(SystemColors.
Window
, item.BackColor);
469
Assert.Equal(SystemColors.
Window
, item.BackColor);
507
Assert.Equal(SystemColors.
Window
, item.BackColor);
545
Assert.Equal(SystemColors.
Window
, item.BackColor);
583
Assert.Equal(SystemColors.
Window
, item.BackColor);
620
Assert.Equal(SystemColors.
Window
, item.BackColor);
658
Assert.Equal(SystemColors.
Window
, item.BackColor);
696
Assert.Equal(SystemColors.
Window
, item.BackColor);
733
Assert.Equal(SystemColors.
Window
, item.BackColor);
772
Assert.Equal(SystemColors.
Window
, item.BackColor);
802
Assert.Equal(SystemColors.
Window
, item.BackColor);
849
yield return new object[] { Color.Empty, SystemColors.
Window
};
868
Assert.Equal(SystemColors.
Window
, item.BackColor);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
258
yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
388
yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
};
System\Windows\Forms\ListViewSubItemTests.cs (13)
17
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
44
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
55
yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.
Window
, string.Empty };
94
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
105
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
109
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
130
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
136
yield return new object[] { Color.Empty, SystemColors.
Window
};
230
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
543
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
548
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
560
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
565
Assert.Equal(SystemColors.
Window
, subItem.BackColor);
System\Windows\Forms\ListViewTests.cs (4)
33
Assert.Equal(SystemColors.
Window
, control.BackColor);
452
yield return new object[] { Color.Empty, SystemColors.
Window
};
475
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
543
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (4)
30
Assert.Equal(SystemColors.
Window
, control.BackColor);
281
yield return new object[] { Color.Empty, SystemColors.
Window
};
304
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
362
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\PropertyGridTests.cs (3)
162
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
3260
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
3276
Assert.Equal(SystemColors.
Window
, control.ViewBackColor);
System\Windows\Forms\RichTextBoxTests.cs (5)
37
Assert.Equal(SystemColors.
Window
, control.BackColor);
646
yield return new object[] { Color.Empty, SystemColors.
Window
};
727
Assert.Equal(SystemColors.
Window
, control.BackColor);
3829
Assert.Equal(SystemColors.
Window
, control.SelectionBackColor);
3931
yield return new object[] { Color.Empty, SystemColors.
Window
};
System\Windows\Forms\TreeViewTests.cs (4)
25
Assert.Equal(SystemColors.
Window
, control.BackColor);
698
yield return new object[] { Color.Empty, SystemColors.
Window
};
721
yield return new object[] { Color.Empty, SystemColors.
Window
, 0 };
779
Assert.Equal(SystemColors.
Window
, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (4)
29
Assert.Equal(SystemColors.
Window
, control.BackColor);
510
yield return new object[] { Color.Empty, SystemColors.
Window
};
533
yield return new object[] { Color.Empty, SystemColors.
Window
, 1 };
590
Assert.Equal(SystemColors.
Window
, control.BackColor);
TextBoxBaseTests.cs (2)
383
yield return new object[] { Color.Empty, SystemColors.
Window
};
429
Assert.Equal(SystemColors.
Window
, control.BackColor);
TextBoxTests.cs (1)
32
Assert.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)
225
this.checkedListBox1.BackColor = System.Drawing.SystemColors.
Window
;
281
this.checkedListBox2.BackColor = System.Drawing.SystemColors.
Window
;