Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 11, 2025

This PR adds documentation for a WPF breaking change introduced in .NET 10 Preview 5 where empty <Grid.ColumnDefinitions> or <Grid.RowDefinitions> declarations now cause MC3063 compilation errors.

Changes Made

  • Created docs/core/compatibility/wpf/10.0/empty-grid-definitions.md - Complete breaking change documentation with examples and migration guidance
  • Updated docs/core/compatibility/10.0.md - Added entry to the WPF section
  • Updated docs/core/compatibility/toc.yml - Added navigation entry for the new breaking change

Breaking Change Details

Previously, WPF applications could compile successfully with empty Grid definitions like this:

<Grid>
  <Grid.ColumnDefinitions>
  </Grid.ColumnDefinitions>
  <Grid.RowDefinitions>
  </Grid.RowDefinitions>
  <TextBlock Text="Hello World" />
</Grid>

Starting with .NET 10 Preview 5, this now fails with:

error MC3063: Property 'ColumnDefinitions' does not have a value.
error MC3063: Property 'RowDefinitions' does not have a value.

The documentation provides two clear migration paths:

  1. Remove the empty declarations entirely
  2. Add actual <ColumnDefinition /> or <RowDefinition /> elements

This change is a consequence of implementing Grid XAML Shorthand Syntax support, which requires stricter parsing of property declarations.

Fixes #47743.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/toc.yml docs/core/compatibility/toc
docs/core/compatibility/wpf/10.0/empty-grid-definitions.md Empty ColumnDefinitions and RowDefinitions are disallowed

Copilot AI changed the title [WIP] [Breaking change]: WPF throws MC3063 error for empty ColumnDefinitions or RowDefinitions Add WPF breaking change documentation for MC3063 error with empty Grid definitions Aug 11, 2025
Copilot AI requested a review from gewarren August 11, 2025 22:37
@gewarren gewarren marked this pull request as ready for review August 12, 2025 02:56
@gewarren gewarren requested a review from a team as a code owner August 12, 2025 02:56
@gewarren gewarren merged commit 17acabc into main Aug 14, 2025
10 checks passed
@gewarren gewarren deleted the copilot/fix-47743 branch August 14, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: WPF throws MC3063 error for empty ColumnDefinitions or RowDefinitions

3 participants