You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DarkMode (b): Fix rendering of disabled TextBox types (#13721)
Fixes the `ComboBox` and `RichTextBox` BackColor issue in dark mode,
where the background color was the same as in Classic mode (LightMode).
Note, that ComboBox internally uses depending on the ComboBox
DropDownStyle different nested controls for different modes. So,
practically there are inner ListBox and TextBox controls which had to be
addressed:
<img width="553" height="456" alt="image"
src="https://github.com/user-attachments/assets/61821717-b509-4ecf-b703-89f7a0970c60"
/>
Again: Tested by CTI and made sure, that the Classic mode CodePaths
remain as they were.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/13721)
#pragma warning restore WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Copy file name to clipboardExpand all lines: src/System.Windows.Forms/System/Windows/Forms/Controls/ComboBox/ComboBox.cs
+94-26Lines changed: 94 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -249,15 +249,31 @@ public AutoCompleteStringCollection AutoCompleteCustomSource
249
249
}
250
250
}
251
251
252
+
#pragma warning disable WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
252
253
/// <summary>
253
254
/// The background color of this control. This is an ambient property and
#pragma warning restore WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
0 commit comments