Repository navigation
docs: Document the removed collection-initializer syntax in the 7.0 guide - #25434
Merged
MartinZikmund merged 1 commit intoOct 14, 2026
Merged
MartinZikmund merged 1 commit into
MartinZikmund merged 1 commit into
Conversation
…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
MartinZikmund
approved these changes
Oct 14, 2026
MartinZikmund
enabled auto-merge
October 14, 2026 10:12
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25434/docs/index.html |
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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. |
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-25434/docs/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #25329
PR Type:
📚 Documentation content changes
What changed? 🚀
#23744 (BC65) removed the Uno-only
IEnumerableimplementation fromFrameworkElementandContentControl, and the publicAdd(UIElement)helpers onBorder,PanelandScrollViewer. Together they made C# collection initializers such asnew 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.mdgets 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 ✅
Screenshots Compare Test Runresults.