You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PrintPreviewControl displays a black preview page after assigning an empty PrintDocument #14838
After PR #14424, PrintPreviewControl.ResetForeColor() was changed to use SystemColors.ControlText as the default ForeColor. It resolves the inconsistency tracked by GH issue: #14420
But with the new default behavior in .NET 11, assigning a PrintDocument that produces no printable content causes the preview page to render as a solid black page.
As a result, existing applications that preview dark-colored content may experience poor readability due to the black preview background.
Steps to reproduce
Create a WinForms application with targeting .NET 11.
Add a PrintPreviewControl to the form.
Leave its ForeColor unchanged (default value: SystemColors.ControlText).
Add PrintDocument and assign it to PrintPreviewControl's Document property
Run the application.
Actual Result
The preview page is rendered as a solid black page.
Expected Result
Assigning an empty PrintDocument should not cause the preview page to become black.
Activity
Fixes PrintPreviewControl displays a black preview page after assigni…
Olina-Zhang commentedon Aug 20, 2026
Verified in NET 11 SDK build: rc.1.26413.103 + private dlls built from the main branch of dotnet/Winforms repo, it was fixed:
Olina-Zhang commentedon Aug 27, 2026
Tested it in .NET 11 RC1 test pass build: 11.0.100-rc.1.26425.128, it has the same validation result as above.