Repository navigation
Controls (.NET 11): add redesigned ControlGallery and CollectionViewDemos screenshots - #3640
Conversation
…gned ControlGallery Add a .NET 11 ImageButton screenshot (imagebutton-net11.png) from the redesigned ControlGallery sample and a matching XAML/C# excerpt (dotnet_bot.png, HeightRequest 160) behind >=net-maui-11.0. Earlier versions keep the original screenshot and excerpt. In both versions, declare the label that the code-behind updates and describe the image in the alt text. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… CollectionViewDemos Add .NET 11 versions of all 38 CollectionView screenshots (*-net11.png) from the redesigned CollectionViewDemos sample, behind >=net-maui-11.0. Earlier versions keep the original screenshots. Scroll-to-position shots target Proboscis Monkey and grid spacing uses 20/30 to match the docs code. Split excerpts that changed with the redesign the same way: bundled image names instead of Wikimedia URLs, RightItems swipe items, the stacked vertical grid template, Grid-based header/footer, and group header colors. For all versions, correct the Center snap alignment sentence and the DataTemplateSelector condition, and explain the MakeVisible result. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit f226eb5: 💡 Validation status: suggestionsThis comment lists only the first 25 files in the pull request. docs/user-interface/controls/collectionview/media/emptyview/datatemplateselector-net11.png
docs/user-interface/controls/collectionview/media/emptyview/emptyviewtemplate-net11.png
docs/user-interface/controls/collectionview/media/emptyview/filter-multiple-views-net11.png
docs/user-interface/controls/collectionview/media/emptyview/null-itemssource-net11.png
docs/user-interface/controls/collectionview/media/emptyview/swap-net11.png
docs/user-interface/controls/collectionview/media/grouping/customized-footer-net11.png
docs/user-interface/controls/collectionview/media/grouping/customized-header-net11.png
docs/user-interface/controls/collectionview/media/grouping/empty-group-net11.png
docs/user-interface/controls/collectionview/media/grouping/grouped-data-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-string-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-template-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-view-net11.png
docs/user-interface/controls/collectionview/media/layout/horizontal-grid-net11.png
docs/user-interface/controls/collectionview/media/layout/horizontal-list-net11.png
docs/user-interface/controls/collectionview/media/layout/runtime-resizing-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-grid-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-grid-spacing-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-rtl-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-spacing-net11.png
docs/user-interface/controls/collectionview/media/populate-data/datatemplate-net11.png
docs/user-interface/controls/collectionview/media/populate-data/pull-to-refresh-net11.png
docs/user-interface/controls/collectionview/media/populate-data/swipeview-net11.png
docs/user-interface/controls/collectionview/media/scrolling/scrolltoposition-center-net11.png
docs/user-interface/controls/collectionview/media/scrolling/scrolltoposition-end-net11.png
This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
There was a problem hiding this comment.
🟡 Changes recommended
The new C# example has missing parentheses that prevent compilation, and its swipe command parameters can be null or target the wrong row.
2 open issues
What changed in this PR
Updates the ImageButton and CollectionView documentation to reflect the redesigned .NET 11 samples, while preserving the original screenshots and examples for .NET 8–10.
Changes:
- Adds version-specific references to 39 redesigned screenshots.
- Updates .NET 11 examples for bundled images, swipe actions, grid layouts, and group styling.
- Corrects shared guidance for ImageButton labels, template selection, and scrolling behavior.
| File | Description |
|---|---|
docs/user-interface/controls/imagebutton.md |
Adds .NET 11 examples and screenshot; declares the counter label. |
docs/user-interface/controls/collectionview/selection.md |
Versions screenshots for selection and preselection scenarios. |
docs/user-interface/controls/collectionview/scrolling.md |
Versions screenshots and clarifies scrolling alignment. |
docs/user-interface/controls/collectionview/populate-data.md |
Updates swipe examples and corrects template-selector guidance. |
docs/user-interface/controls/collectionview/layout.md |
Adds redesigned grid, header, and footer examples and screenshots. |
docs/user-interface/controls/collectionview/index.md |
Versions the introductory multiple-selection screenshot. |
docs/user-interface/controls/collectionview/grouping.md |
Adds bundled-image data and updated group styling examples. |
docs/user-interface/controls/collectionview/emptyview.md |
Versions empty-view screenshots and explains sample-only styling. |
Review effort: Balanced
Close the Binding.Create calls and bind each swipe item's CommandParameter to its own binding context (the swiped item) instead of CollectionView.SelectedItem, in both version blocks. Mark the pages changed by this PR as ai-assisted. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 876305a: 💡 Validation status: suggestionsThis comment lists only the first 25 files in the pull request. docs/user-interface/controls/collectionview/media/emptyview/datatemplateselector-net11.png
docs/user-interface/controls/collectionview/media/emptyview/emptyviewtemplate-net11.png
docs/user-interface/controls/collectionview/media/emptyview/filter-multiple-views-net11.png
docs/user-interface/controls/collectionview/media/emptyview/null-itemssource-net11.png
docs/user-interface/controls/collectionview/media/emptyview/swap-net11.png
docs/user-interface/controls/collectionview/media/grouping/customized-footer-net11.png
docs/user-interface/controls/collectionview/media/grouping/customized-header-net11.png
docs/user-interface/controls/collectionview/media/grouping/empty-group-net11.png
docs/user-interface/controls/collectionview/media/grouping/grouped-data-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-string-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-template-net11.png
docs/user-interface/controls/collectionview/media/layout/header-footer-view-net11.png
docs/user-interface/controls/collectionview/media/layout/horizontal-grid-net11.png
docs/user-interface/controls/collectionview/media/layout/horizontal-list-net11.png
docs/user-interface/controls/collectionview/media/layout/runtime-resizing-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-grid-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-grid-spacing-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-rtl-net11.png
docs/user-interface/controls/collectionview/media/layout/vertical-list-spacing-net11.png
docs/user-interface/controls/collectionview/media/populate-data/datatemplate-net11.png
docs/user-interface/controls/collectionview/media/populate-data/datatemplateselector-net11.png
docs/user-interface/controls/collectionview/media/populate-data/pull-to-refresh-net11.png
docs/user-interface/controls/collectionview/media/populate-data/swipeview-net11.png
docs/user-interface/controls/collectionview/media/scrolling/scrolltoposition-center-net11.png
This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |


Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
876305a63da199a071cab534b3649eb1f13385e0-net11images.↑ The original images are restored byte-identical, and the .NET 10 render matches
mainapart from the intended fixes.↑ GPT 6.1 technical, Gemini and Sonnet reader reviews; findings applied.
↑ Both automated Copilot review comments (C# swipe-item bindings) are fixed and resolved.
↑ OpenPublishing.Build, build verifier, PoliCheck and lint passed on the previous head.
↓ No local DocFX build, and checks on the latest head are pending.
↓ The C# fix uses
Binding.SelfPathand wasn't compiled locally.↓ The screenshots come from sample redesigns; dotnet/maui-samples#793 isn't merged yet.
Summary
The ControlGallery and CollectionViewDemos samples were visually redesigned for .NET 11 (a shared gallery design system, the .NET 11 rocket bots, and bundled Fluent Emoji images instead of broken Wikimedia links). The redesign exists only in the .NET 11 samples, so this PR adds the new screenshots and matching code behind
>=net-maui-11.0monikers. .NET 8–10 keep the original screenshots and code.Changes
ImageButton (
controls/imagebutton.md)imagebutton-net11.pngplus a matching XAML and C# excerpt (dotnet_bot.png,HeightRequest="160") for .NET 11.labelthat the code-behind updates, and the alt text describes the image.CollectionView (7 pages under
controls/collectionview/)*-net11.pngscreenshots next to the originals. They follow the existing style: iOS light theme, cropped to the list at 1x, header and footer as an iOS plus Android pair, and red boxes on scroll targets. Snap points are from Android, because they need a real fling.RightItemsswipe items with the new colors.Grid-based header and footer.SnapPointsAlignment.Centersentence said "the top item will be center aligned at the top of the view"; it now says the item nearest the center aligns with the center.DataTemplateSelectortext said "monkey name contains", but the code checks the location.No existing image file is removed or changed.
Before and after (.NET 11 view)
Notes for reviewers
verticalgrid-multipleselection-net11.png(CollectionView index) comes fromVerticalGridPagewith multiple selection switched on at runtime. The sample has no dedicated page for it.VerticalListFlowDirectionPage, which doesn't exist in either version of the sample. This is unchanged and left for a follow-up.Internal previews
Toggle expand/collapse
Build report