Skip to content

Replay #15033: Disable VisualStylesMode.Net11 for composite controls - #15114

Merged
LeafShi1 merged 1 commit into
dotnet:integration/11.0-RC2from
LeafShi1:integration/11.0-RC2-replay-15033
Sep 16, 2026
Merged

LeafShi1 merged 1 commit into
dotnet:integration/11.0-RC2from
LeafShi1:integration/11.0-RC2-replay-15033

Conversation

@LeafShi1

@LeafShi1 LeafShi1 commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Replays #15033 onto the corrected integration/11.0-RC2 branch based on release/11.0.

This is prerequisite 11 of 11 in the ordered RC2 integration chain.

Microsoft Reviewers: Open in CodeFlow

…s (ToolStrip, DataGridView, etc.) until NET11 layout modernization is completed (dotnet#15033)

## Proposed changes

- Fall back to Classic rendering for ToolStrip, MenuStrip, and DataGridView when Net11 visual styles are requested.
- Add AppContext switches to opt these controls into Net11 rendering:

>  -  System.Windows.Forms.ToolStripModernRendering
>  -  System.Windows.Forms.DataGridViewModernRendering

- Preserve visual-style inheritance and change-notification behavior for coerced modes.

## Customer Impact

- ToolStrip, MenuStrip, and DataGridView use stable Classic rendering by default until their Net11 layout modernization is complete.
- Applications can opt into Net11 rendering through the corresponding AppContext switches.
- Existing applications retain their current behavior unless explicitly opted in.
@LeafShi1
LeafShi1 requested a review from a team as a code owner September 16, 2026 01:09
@LeafShi1
LeafShi1 merged commit 6323bba into dotnet:integration/11.0-RC2 Sep 16, 2026
8 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants