-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StatusStrip breaking change (#44043)
* StatusStrip breaking change * dates * Apply suggestions * more suggestion
- Loading branch information
Showing
3 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
docs/core/compatibility/windows-forms/9.0/statusstrip-renderer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Breaking change: System.Windows.Forms.StatusStrip uses a different default renderer" | ||
description: Learn about the breaking change in .NET 9 for Windows Forms where System.Windows.Forms.StatusStrip uses a different default value for the RenderMode property. | ||
ms.date: 12/19/2024 | ||
--- | ||
# System.Windows.Forms.StatusStrip uses a different default renderer | ||
|
||
<xref:System.Windows.Forms.StatusStrip?displayProperty=nameWithType> has been updated to use the default renderer. | ||
|
||
## Version introduced | ||
|
||
.NET 9 | ||
|
||
## Previous behavior | ||
|
||
Previously, the `StatusStrip`'s `RenderMode` property was set to <xref:System.Windows.Forms.ToolStripRenderMode.System?displayProperty=nameWithType> by default. | ||
|
||
## New behavior | ||
|
||
<xref:System.Windows.Forms.StatusStrip?displayProperty=nameWithType> uses the default renderer. You might observe minor changes to the appearance of the `StatusStrip`. | ||
|
||
## Change category | ||
|
||
This change is a [*behavioral change*](../../categories.md#behavioral-change). | ||
|
||
## Reason for change | ||
|
||
The previous default behavior didn't meet accessibility standards. The focus indicator over the `ToolStripSplitButton` was difficult to see due to the lack of contrast. | ||
|
||
## Recommended action | ||
|
||
The new behavior is recommended for accessibility reasons. If you want to revert to the previous behavior, set the `RenderMode` property to <xref:System.Windows.Forms.ToolStripRenderMode.System?displayProperty=nameWithType>. | ||
|
||
## Affected APIs | ||
|
||
- <xref:System.Windows.Forms.StatusStrip?displayProperty=fullName> | ||
- <xref:System.Windows.Forms.ToolStripManager.RenderMode?displayProperty=fullName> |