2 overrides of ShouldSerializeBackColor
System.Windows.Forms (2)
System\Windows\Forms\MDI\MDIClient.cs (1)
318internal override bool ShouldSerializeBackColor() => BackColor != SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
295internal override bool ShouldSerializeBackColor() => !BackColor.Equals(SystemColors.AppWorkspace);
11 references to ShouldSerializeBackColor
System.Windows.Forms (11)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
258get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window; 1992if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor())
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
130get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
157if (ShouldSerializeBackColor())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
348get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
200if (ShouldSerializeBackColor() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
286if (ShouldSerializeBackColor()) 1980if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !ShouldSerializeBackColor())
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
862=> _control is not null ? _control.ShouldSerializeBackColor() : base.ShouldSerializeBackColor();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
198get => ShouldSerializeBackColor() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
578if (!Enabled && BorderStyle != BorderStyle.None && !_upDownEdit.ShouldSerializeBackColor())