.NET version
.NET 11.0.0-preview.7.26381.103
Issue description
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
.NET version
.NET 11.0.0-preview.7.26381.103
Issue description
Several composite controls have not yet been fully adapted to the new .NET 11
VisualStylesModerendering model.Unlike standalone controls such as
TextBoxandComboBox, composite controls such asToolStrip,MenuStrip, andDataGridViewstill rely on legacy sizing and layout assumptions.When
VisualStylesMode.Net11orVisualStylesMode.Latestis 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:
DataGridViewrow-height calculations.ToolStripComboBoxandDataGridViewediting controls.Expected behavior
Composite controls should render correctly when using
VisualStylesMode.Net11, without clipped content, incorrect sizing, or layoutregressions.
Actual behavior
ToolStrip,MenuStrip, andDataGridViewcan render incorrectly because their layout and hosted-control implementations have not yet been modernized for the .NET 11 metrics.Steps to reproduce
Implementation status
ToolStrip,MenuStrip, andDataGridView.