We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a2ef9 commit 1a8e8b1Copy full SHA for 1a8e8b1
src/System.Windows.Forms/System/Windows/Forms/Controls/TextBox/TextBoxBase.cs
@@ -949,7 +949,8 @@ private void EnsureReadonlyBackgroundColor(bool value)
949
{
950
// If we have no specifically defined back color, we set the back color in case we're in dark mode.
951
if (Application.IsDarkModeEnabled
952
- && DarkModeRequestState is true)
+ && DarkModeRequestState is true
953
+ && !ShouldSerializeBackColor())
954
955
base.BackColor = value ? SystemColors.ControlLight : SystemColors.Window;
956
Invalidate();
0 commit comments