Skip to content

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

Closed

Description

@MelonWang1

.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.

Activity

  1. added
    area-DarkMode
    untriaged
    on Dec 4, 2024
  2. added
    help wanted
    and removed
    untriaged
    on Feb 21, 2025
  3. dotnet-policy-service commented on Feb 21, 2025

    @dotnet-policy-service
    Contributor

    This issue is now marked as "help wanted", and we’re looking for a community volunteer to work on this issue. If we receive no interest in 180 days, we will close the issue. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  4. Zheng-Li01 commented on Aug 20, 2026

    @Zheng-Li01
    Member

    Verified the issue with 11.0.0-rc.1.26413.103 + Private dlls built from main branch of dotnet/winforms repo, the issue has been fixed as below screenshot.

    Image
  5. Zheng-Li01 commented on Aug 27, 2026

    @Zheng-Li01
    Member

    Tested in .NET 11 RC1 test pass build: 11.0.100-rc.1.26425.128, it has the same validation result as above.

  6. locked and limited conversation to collaborators on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-DarkModehelp wanted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions