File tree 1 file changed +4
-3
lines changed
src/System.Windows.Forms/System/Windows/Forms/Controls/TabControl
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1294,7 +1294,7 @@ protected override void OnHandleCreated(EventArgs e)
1294
1294
if ( Application . IsDarkModeEnabled )
1295
1295
{
1296
1296
PInvoke . SetWindowTheme ( HWND , null , $ "{ DarkModeIdentifier } ::{ BannerContainerThemeIdentifier } ") ;
1297
- PInvokeCore . EnumChildWindows ( this , StyleUpDown ) ;
1297
+ PInvokeCore . EnumChildWindows ( this , StyleChildren ) ;
1298
1298
}
1299
1299
#pragma warning restore WFO5001
1300
1300
}
@@ -1779,8 +1779,9 @@ private bool ShouldSerializeItemSize()
1779
1779
return ! _padding . Equals ( s_defaultPaddingPoint ) ;
1780
1780
}
1781
1781
1782
- private BOOL StyleUpDown ( HWND handle )
1783
- => PInvoke . SetWindowTheme ( handle , $ "{ DarkModeIdentifier } _{ ExplorerThemeIdentifier } ", null ) . Succeeded ;
1782
+ private BOOL StyleChildren ( HWND handle ) =>
1783
+ PInvoke . SetWindowTheme ( handle , $ "{ DarkModeIdentifier } _{ ExplorerThemeIdentifier } ", null )
1784
+ . Succeeded ;
1784
1785
1785
1786
/// <summary>
1786
1787
/// Returns a string representation for this control.
You can’t perform that action at this time.
0 commit comments