Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DarkMode]The Form1 title bar change to white color when set the RightToLeft to Yes in PropertyGrid control #12582

Open
MelonWang1 opened this issue Dec 4, 2024 · 0 comments
Labels
area-DarkMode Issues relating to Dark Mode feature untriaged The team needs to look at this issue in the next triage

Comments

@MelonWang1
Copy link
Contributor

.NET version

.NET 10.0.100-alpha.1.24573.1

Did it work in .NET Framework?

No

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

No, also repro in .NET 9.0 which it started to be supported.

Issue description

The Form1 title bar change to white color when set the RightToLeft to Yes in PropertyGrid control.
Image

Steps to reproduce

Repro steps:

  1. Create a WinForms .NET application with PropertyGrid control
  2. Set PropertyGrid's selectedObject property to Form1
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
  4. Run the application
  5. In PropertyGrid control, set the RightToLeft property to Yes

More Info:

  1. If repro the issue, then set RightToLeft property to No, the Form1 title bar also be white color.
@MelonWang1 MelonWang1 added area-DarkMode Issues relating to Dark Mode feature untriaged The team needs to look at this issue in the next triage labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DarkMode Issues relating to Dark Mode feature untriaged The team needs to look at this issue in the next triage
Projects
None yet
Development

No branches or pull requests

1 participant