dotnet/winforms

MenuStrip, ToolStrip and StatusStrip white border issue

Open

#5421 aperta il 12 ago 2021

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C# (922 fork)batch import
area-Themingarea-controls-StripControlshelp wanted

Metriche repository

Star
 (4100 star)
Metriche merge PR
 (Merge medio 14g 22h) (56 PR mergiate in 30 g)

Descrizione

  • .NET Core Version: .NET SDK (reflecting any global.json): Version: 5.0.302 Commit: c005824e35

    Runtime Environment: OS Name: Windows OS Version: 10.0.22000 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.302\

    Host (useful for support): Version: 5.0.8 Commit: 35964c9215

    .NET SDKs installed: 5.0.103 [C:\Program Files\dotnet\sdk] 5.0.302 [C:\Program Files\dotnet\sdk]

    .NET runtimes installed: Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

  • Have you experienced this same bug with .NET Framework?: No

Problem description: if the "strips" have dark colors (via professional renderer) a white border (on the left for toolstrip and menustrip and statusstrip, and on the bottom for statusstrip) cannot be avoided.

White border near the form border (.Net Core 5):

image image image

Expected behavior: Same application, same "ToolStripProfessionalRenderer" in .Net Framework 4.8, the borders are drawn correctly:

image

Best Regards, Angelo

Guida contributor