Skip to content

docs: Document the removed collection-initializer syntax in the 7.0 guide - #25434

Merged
MartinZikmund merged 1 commit into
unoplatform:masterfrom
olehgerus:docs/uno7-collection-initializers
Oct 14, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:masterfrom
olehgerus:docs/uno7-collection-initializers

Conversation

@olehgerus

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25329

PR Type:

📚 Documentation content changes

What changed? 🚀

#23744 (BC65) removed the Uno-only IEnumerable implementation from FrameworkElement and ContentControl, and the public Add(UIElement) helpers on Border, Panel and ScrollViewer. Together they made C# collection initializers such as new StackPanel { a, b } compile, and that code is now a compile error. The 7.0 migration guide did not mention it.

migrating-to-uno-7.md gets a short section after "Uno-only implicit conversions and static fields removed", with the replacements (Children = { … }, Child =, Content =) and a note that XAML is unaffected. Checklist step 20 now covers it too.

PR Checklist ✅

…uide

unoplatform#23744 (BC65) removed the Uno-only IEnumerable implementation from
FrameworkElement and ContentControl, and the Add helpers on Border, Panel
and ScrollViewer, so C# collection initializers on those types no longer
compile. Add a section with the replacements and extend the matching
checklist step.

Fixes unoplatform#25329
@CLAassistant

CLAassistant commented Oct 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@MartinZikmund
MartinZikmund merged commit c1ffc76 into unoplatform:master Oct 14, 2026
16 checks passed
@unodevops

Copy link
Copy Markdown
Contributor

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.

Migrating to Uno 7.0 guide does not mention removed C# collection-initializer syntax on panels, Border and ScrollViewer

4 participants