Skip to content

Commit a5a9401

Browse files
Fix UpDownBase control for dark mode.
1 parent 7c04597 commit a5a9401

File tree

1 file changed

+4
-0
lines changed
  • src/System.Windows.Forms/System/Windows/Forms/Controls/UpDown

1 file changed

+4
-0
lines changed

src/System.Windows.Forms/System/Windows/Forms/Controls/UpDown/UpDownBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ protected override CreateParams CreateParams
215215
{
216216
get
217217
{
218+
#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.
219+
SetStyle(ControlStyles.ApplyThemingImplicitly, true);
220+
#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.
221+
218222
CreateParams cp = base.CreateParams;
219223

220224
cp.Style &= ~(int)WINDOW_STYLE.WS_BORDER;

0 commit comments

Comments
 (0)