Repository navigation
XAML fundamentals (.NET 11): screenshots and excerpts for the redesigned XamlSamples sample - #3645
Conversation
The 11.0 XamlSamples sample uses CollectionViewDemoPage, and ListView is deprecated in .NET 10. Add a .NET 11 version of the bindings and collections section that uses CollectionView with DataTemplate content instead of ListView and ViewCell. Earlier versions keep ListView, which matches the 10.0 sample. Also fix a typo (dsplays). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…XamlSamples Add .NET 11 versions of 14 tutorial screenshots (*-net11.png) from the redesigned XamlSamples sample behind >=net-maui-11.0. Earlier versions keep the original screenshots. new-solution.png isn't from the sample and is unchanged. Split the tutorial page excerpts that changed with the redesign: HelloXamlPage (MediumSlateBlue), GridDemoPage colors, SharedResourcesPage OnPlatform colors and spacing, StaticConstantsPage AppConstants values and BoxView margin, SliderBindingsPage spacing, and SliderTransformsPage (no page padding, label spans both columns, as in the sample). For all versions, the slider transforms text now names the Rotation, RotationX, and RotationY properties. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Make the .NET 11 styling note specific, say that the shared resources screenshot is from Android, explain SelectionMode in the CollectionView example, and refer to VerticalStackLayout in the MVVM prose to match the code (all versions). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- get-started: move the explanation of the Hello XAML example back under it, promote the .NET 11 implicit namespace section out of the preview section and point the earlier note at it, and say that XAML source generation is the default in .NET 11. - data-binding-basics: note that ListView is deprecated in .NET 10. 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 cbef514: 💡 Validation status: suggestionsdocs/xaml/fundamentals/media/data-binding-basics/listview1-net11.png
docs/xaml/fundamentals/media/data-binding-basics/listview2-net11.png
docs/xaml/fundamentals/media/data-binding-basics/listview3-net11.png
docs/xaml/fundamentals/media/data-binding-basics/slidertransforms-net11.png
docs/xaml/fundamentals/media/essential-syntax/grid-net11.png
docs/xaml/fundamentals/media/get-started/helloxaml1-net11.png
docs/xaml/fundamentals/media/get-started/xamlpluscode1-net11.png
docs/xaml/fundamentals/media/get-started/xamlpluscode2-net11.png
docs/xaml/fundamentals/media/markup-extensions/sharedresources-net11.png
docs/xaml/fundamentals/media/markup-extensions/staticconstants-net11.png
docs/xaml/fundamentals/media/mvvm/clock-net11.png
docs/xaml/fundamentals/media/mvvm/hslcolorscroll-net11.png
docs/xaml/fundamentals/media/mvvm/keypad-net11.png
docs/xaml/fundamentals/media/mvvm/oneshotdatetime-net11.png
For more details, please refer to the build report. 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.
🟢 Approval recommended
No active review issues were reported for the version-specific XAML tutorial updates.
No open issues 🎉
What changed in this PR
Updates the XAML fundamentals tutorials to reflect the redesigned .NET 11 XamlSamples sample, while preserving the original screenshots and examples for .NET 8–10.
Changes:
- Adds version-specific screenshot references and matching .NET 11 examples, with notes explaining sample-wide styling.
- Introduces a .NET 11
CollectionViewwalkthrough while retaining the earlierListViewguidance. - Clarifies XAML source-generation defaults, reorganizes introductory explanations, and corrects terminology and typos.
| File | Description |
|---|---|
docs/xaml/fundamentals/mvvm.md |
Versions screenshots and corrects the layout type in the binding explanation. |
docs/xaml/fundamentals/markup-extensions.md |
Adds .NET 11 resource colors, constants, layout adjustments, and screenshots. |
docs/xaml/fundamentals/get-started.md |
Updates Hello XAML, versions screenshots, and clarifies source generation and namespaces. |
docs/xaml/fundamentals/essential-syntax.md |
Adds the redesigned .NET 11 Grid example and screenshot. |
docs/xaml/fundamentals/data-binding-basics.md |
Adds .NET 11 slider examples and CollectionView guidance, and corrects rotation property names. |
Review effort: Balanced
The redesigned sample uses U+2190 for the backspace button because the Inter font has no U+21E6 glyph (dotnet/maui-samples#798, 63b14608). Split the KeypadPage excerpt by version and replace keypad-net11.png with the recapture. Earlier versions keep U+21E6. 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 6c43944: 💡 Validation status: suggestionsdocs/xaml/fundamentals/media/data-binding-basics/listview1-net11.png
docs/xaml/fundamentals/media/data-binding-basics/listview2-net11.png
docs/xaml/fundamentals/media/data-binding-basics/listview3-net11.png
docs/xaml/fundamentals/media/data-binding-basics/slidertransforms-net11.png
docs/xaml/fundamentals/media/essential-syntax/grid-net11.png
docs/xaml/fundamentals/media/get-started/helloxaml1-net11.png
docs/xaml/fundamentals/media/get-started/xamlpluscode1-net11.png
docs/xaml/fundamentals/media/get-started/xamlpluscode2-net11.png
docs/xaml/fundamentals/media/markup-extensions/sharedresources-net11.png
docs/xaml/fundamentals/media/markup-extensions/staticconstants-net11.png
docs/xaml/fundamentals/media/mvvm/clock-net11.png
docs/xaml/fundamentals/media/mvvm/hslcolorscroll-net11.png
docs/xaml/fundamentals/media/mvvm/keypad-net11.png
docs/xaml/fundamentals/media/mvvm/oneshotdatetime-net11.png
For more details, please refer to the build report. 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:
6c43944c4f6284e999b32905e7986d287e261560-net11images.↑ The .NET 11 excerpts were compared line by line with the redesigned tutorial pages in dotnet/maui-samples#798 (63b14608), and the .NET 10 view was compared with main.
↑ GPT 6.1 technical review found no issues; Sonnet reader review findings were applied, and the follow-up structure fixes were reviewed again.
↑ All PR checks passed on this revision.
↓ No local DocFX build, and the tutorial XAML wasn't compiled as written.
↓ dotnet/maui-samples#798 isn't merged yet.
Summary
The XamlSamples sample (
xaml-fundamentals) was visually redesigned for .NET 11 in dotnet/maui-samples#798. The redesign exists only in the .NET 11 samples, so this PR adds the new screenshots and matching tutorial code behind>=net-maui-11.0monikers. .NET 8–10 keep the original screenshots and code. It uses the same-net11.pngnaming as #3640, #3642, #3643, and #3644.These are type-along tutorials, so the .NET 11 page XAML matches the sample's tutorial pages. The sample's look comes from app-wide styles, and each page has a .NET 11 note that explains this.
Changes (5 pages under
xaml/fundamentals/)*-net11.pngfiles next to the originals, light theme at 1x. iOS and Android are used as before.get-started/new-solution.pngis a Visual Studio screenshot, so both versions share it.MediumSlateBlue.OnPlatformcolors and spacing.AppConstantsvalues, aBoxViewmargin, and no page padding.←(←), because the sample's Inter font has no⇦(⇦) glyph.CollectionViewsection in data binding basics: the 11.0 sample usesCollectionViewDemoPage, andListViewis deprecated in .NET 10. The three steps (no template, name only, full template) useCollectionViewwithDataTemplatecontent. .NET 10 and earlier keepListViewand get a note that it's deprecated in .NET 10.Rotation,RotationX, andRotationYproperties.VerticalStackLayout, as the code does.ai-usage: ai-assistedandms.dateare added to the changed pages.No existing image file is removed or changed.
Before and after
Notes for reviewers
-net11file name triggers the non-blockingimage-name-incompletebuild suggestion, as in Controls (.NET 11): add redesigned ControlGallery and CollectionViewDemos screenshots #3640.Sample PR: dotnet/maui-samples#798