Skip to content

[Dark Mode] PrintPreviewControl does not display correctly after setting the background to black #11940

Closed
@Nora-Zhou01

Description

@Nora-Zhou01

.NET version

9.0.0-rc.1.24415.1 + build private dll from winforms repo main branch

Did it work in .NET Framework?

No

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

This is a new feature Dark Mode: #11857

Issue description

Dark Mode:
PrintPreviewControl does not display correctly after setting the background to black
print1
Classic Mode:
PrintPreviewControl can be displayed correctly after the background is set to black
print2

Steps to reproduce

  1. Create a WinForms .NET Core application with PrintPreviewControl control
  2. PrintPreviewControl backcolor is set to black
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
  4. Run the application

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-DarkModeIssues relating to Dark Mode featurehelp wantedGood issue for external contributorstenet-accessibilityMAS violation, UIA issue; problems with accessibility standards

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions