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
Disable NET11 VisualStylesMode for composite controls (ToolStrip, DataGridView, etc.) until NET11 layout modernization is completed #15031
Several composite controls have not yet been fully adapted to the new .NET 11 VisualStylesMode rendering model.
Unlike standalone controls such as TextBox and ComboBox, composite controls such as ToolStrip, MenuStrip, and DataGridView still rely on legacy sizing and layout assumptions.
When VisualStylesMode.Net11 or VisualStylesMode.Latest is enabled, the new control metrics and padding can cause visual and layout regressions in these controls and their hosted child controls.
The observed issues include:
Vertically clipped text.
Content that is not fully visible.
Incorrect DataGridView row-height calculations.
Insufficient padding.
Incorrectly rendered borders.
Incomplete rendering of hosted editing controls such as ToolStripComboBox and DataGridView editing controls.
Expected behavior
Composite controls should render correctly when using VisualStylesMode.Net11, without clipped content, incorrect sizing, or layout
regressions.
Actual behavior
ToolStrip, MenuStrip, and DataGridView can render incorrectly because their layout and hosted-control implementations have not yet been modernized for the .NET 11 metrics.
Steps to reproduce
Create a WinForms application.
Set VisualStylesMode to NET11.
Add a ToolStripTextBox to a MenuStrip/ToolStrip.
Add a dataGridViewComboBox to a DataGridView.
Run the application.
Implementation status
Add AppContext switches for ToolStrip, MenuStrip, and DataGridView.
Fall back to Classic rendering by default.
Preserve visual-style inheritance and change-notification behavior.
Add unit tests for the default and opt-in behavior.
Verified with .NET 11 Oct 2026 Update Validation test pass build: .NET 11.0.0-RC.2.26473.101, NET11 VisualStylesMode for composite controls (ToolStrip, DataGridView, etc.) was disabled.
Activity
KlausLoeffelmann commentedon Sep 7, 2026
Thanks!
Amy-Li03 commentedon Sep 24, 2026
Verified with .NET 11 Oct 2026 Update Validation test pass build: .NET 11.0.0-RC.2.26473.101, NET11 VisualStylesMode for composite controls (ToolStrip, DataGridView, etc.) was disabled.
