Skip to content

Commit 79d2b5d

Browse files
willibrandonKlausLoeffelmann
authored andcommitted
Break the expression body after the =>
1 parent 513bbb5 commit 79d2b5d

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

src/System.Windows.Forms/System/Windows/Forms/Controls/TabControl/TabControl.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ protected override void OnHandleCreated(EventArgs e)
12941294
if (Application.IsDarkModeEnabled)
12951295
{
12961296
PInvoke.SetWindowTheme(HWND, null, $"{DarkModeIdentifier}::{BannerContainerThemeIdentifier}");
1297-
PInvokeCore.EnumChildWindows(this, StyleUpDown);
1297+
PInvokeCore.EnumChildWindows(this, StyleChildren);
12981298
}
12991299
#pragma warning restore WFO5001
13001300
}
@@ -1779,8 +1779,9 @@ private bool ShouldSerializeItemSize()
17791779
return !_padding.Equals(s_defaultPaddingPoint);
17801780
}
17811781

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;
17841785

17851786
/// <summary>
17861787
/// Returns a string representation for this control.

0 commit comments

Comments
 (0)