2 overrides of ShouldSerializeBackColor
System.Windows.Forms (2)
System\Windows\Forms\MDI\MDIClient.cs (1)
314
internal override bool
ShouldSerializeBackColor
() => BackColor != SystemColors.AppWorkspace;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
296
internal override bool
ShouldSerializeBackColor
() => !BackColor.Equals(SystemColors.AppWorkspace);
19 references to ShouldSerializeBackColor
System.Windows.Forms (19)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
591
bool useExplicitBackColor = Control.
ShouldSerializeBackColor
() || !Control.UseVisualStyleBackColor;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxModernAdapter.cs (1)
111
Color disabledTextBackColor = Control.
ShouldSerializeBackColor
()
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
99
? Control.
ShouldSerializeBackColor
()
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (1)
111
Color disabledTextBackColor = Control.
ShouldSerializeBackColor
()
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
258
if (
ShouldSerializeBackColor
())
2078
if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
130
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
153
if (
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\ListView\ListView.cs (1)
348
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
196
if (
ShouldSerializeBackColor
() || Application.IsDarkModeEnabled)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
84
if (!
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
4084
private bool ShouldSerializeCommandsBackColor() => _commandsPane.
ShouldSerializeBackColor
();
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
291
if (
ShouldSerializeBackColor
())
1217
&& !
ShouldSerializeBackColor
())
2457
if (msg == PInvokeCore.WM_CTLCOLORSTATIC && !
ShouldSerializeBackColor
())
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
876
=> _control is not null ? _control.
ShouldSerializeBackColor
() : base.ShouldSerializeBackColor();
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
195
get =>
ShouldSerializeBackColor
() ? base.BackColor : SystemColors.Window;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
674
if (!Enabled && BorderStyle != BorderStyle.None && !_upDownEdit.
ShouldSerializeBackColor
())
System\Windows\Forms\Rendering\Button\AnimatedPopupButtonRenderer.cs (1)
240
? button.
ShouldSerializeBackColor
()