Skip to content

WinForms PrintPreviewControl ForeColor displays incorrectly only when set to White #14420

@Amy-Li03

Description

@Amy-Li03

.NET version

11.0.100-preview.3.26175.115

Did it work in .NET Framework?

Yes

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

It works on .NET 8.0, and it starts repro from .NET 9.0

  1. After PR: fix #13861 The custom ForeColor set on PrintPreviewControl is not rendered correctly #13863 fixed in .NET 11, PrintPreviewControl ForeColor displays incorrectly only when set to White
  2. Since this PR was not merged into .NET 9.0 and 10.0, all custom ForeColor settings on PrintPreviewControl are not rendered correctly

Issue description

The ForeColor of PrintPreviewControl was set as White in properties window, however, it appears Black in the form designer.

.NET 11.0 project:
Image

.NET 8.0 project:
Image

Steps to reproduce

  1. Create a WinForms .NET application
  2. Add a PrintPreviewControl to form designer, observe that the ForeColor in Properties window is White, in form designer is Black
  3. Build and run the application, it's same as in design time

Metadata

Metadata

Assignees

Labels

💥 regression-releaseRegression from a public releasetenet-accessibilityMAS violation, UIA issue; problems with accessibility standardswaiting-reviewThis item is waiting on review by one or more members of team

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions