dotnet/winforms

GroupBox doesn't apply ForeColor in ambient condition

開放

#9,958 建立於 2023年9月20日

 (9 則留言) (1 個反應) (1 位負責人)C# (922 個分叉)batch import
:construction: work in progresshelp wantedpriority-2

倉庫指標

星標
 (4,100 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

.NET version

All. Unfortunately.

Did it work in .NET Framework?

No. Unfortunately.

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No.

Issue description

When the GroupBox is inheriting its ForeColor by its Parent control, the color is not correctly applied.

Steps to reproduce

  • Create a new WinForms Form.
  • Insert a TableLayoutPanel
  • Insert a GroupBox
  • Change the Backcolor of the Form to 32,32,32
  • Change the ForeColor of the Form to 240,240,240

The GroupBox should render the Text in light on dark background, but only the Frame is light. The text gets rendered in the original color:

image

@Olina, can you test, if this is a Framework regression? Thanks!

貢獻者指南