Repository navigation
Shapes and brushes (.NET 11): screenshots for the redesigned samples - #3649
jfversluis wants to merge 4 commits into
Conversation
Add .NET 11 versions of 34 shapes screenshots and 9 brushes screenshots (*-net11.png) from the redesigned ShapesDemos (dotnet/maui-samples#800) and BrushesDemos (dotnet/maui-samples#801) samples behind >=net-maui-11.0. Earlier versions keep the original screenshots. The annotated fill rule and gradient diagrams, the solid color brush table, and the LineGeometry image are unchanged. For .NET 11, the SolidColorBrush property element example uses LightSteelBlue, as the sample does. For all versions, match the samples and screenshots: the dashed Line sets StrokeThickness=4, and the GeometryGroup and nonzero arc examples set the Aspect and HorizontalOptions values that the samples use. Add a note that LineGeometry isn't drawn in .NET MAUI 10 and in .NET MAUI 11 before SR2 (dotnet/maui#39975), verified on 10.0.60. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- GeometryGroup example: give the Uniform path a 200x200 size, because Aspect=Uniform without a bounded size collapses in a stack layout. - Move the LineGeometry note before its example and say that .NET MAUI 10 has no fix. - Say that the aspect, line cap, and line join images compare all the values, and name them in the alt text. - PolyQuadraticBezierSegment: the second curve starts at (150,50). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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 615e1f0: 💡 Validation status: suggestionsThis comment lists only the first 25 files in the pull request. docs/user-interface/brushes/media/lineargradient/diagonal-net11.png
docs/user-interface/brushes/media/lineargradient/horizontal-net11.png
docs/user-interface/brushes/media/lineargradient/vertical-net11.png
docs/user-interface/brushes/media/radialgradient/bottom-right-net11.png
docs/user-interface/brushes/media/radialgradient/center-net11.png
docs/user-interface/brushes/media/radialgradient/top-left-net11.png
docs/user-interface/brushes/media/solidcolor/hex-net11.png
docs/user-interface/brushes/media/solidcolor/predefined-brush-net11.png
docs/user-interface/brushes/media/solidcolor/predefined-color-net11.png
docs/user-interface/controls/shapes/media/aspect-net11.png
docs/user-interface/controls/shapes/media/dashed-rectangle-net11.png
docs/user-interface/controls/shapes/media/ellipse-net11.png
docs/user-interface/controls/shapes/media/ellipse/circle-net11.png
docs/user-interface/controls/shapes/media/ellipse/filled-net11.png
docs/user-interface/controls/shapes/media/fillrule/evenodd-net11.png
docs/user-interface/controls/shapes/media/fillrule/nonzero-gaps-net11.png
docs/user-interface/controls/shapes/media/fillrule/nonzero-net11.png
docs/user-interface/controls/shapes/media/geometry/beziersegment-net11.png
docs/user-interface/controls/shapes/media/geometry/clip-ellipsegeometry-net11.png
docs/user-interface/controls/shapes/media/geometry/ellipse-net11.png
docs/user-interface/controls/shapes/media/geometry/geometrygroup-net11.png
docs/user-interface/controls/shapes/media/geometry/linesegments-net11.png
docs/user-interface/controls/shapes/media/geometry/multiple-pathfigures-net11.png
docs/user-interface/controls/shapes/media/geometry/polybeziersegment-net11.png
docs/user-interface/controls/shapes/media/geometry/polylinesegment-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 version guard hides the workaround from .NET MAUI 8–9 readers even though those versions share the affected LineGeometry.AppendPath implementation.
1 open issue
What changed in this PR
Updates the shapes and brushes documentation for the redesigned .NET 11 samples, while preserving the original screenshots for .NET 8–10.
Changes:
- Adds version-specific references to 43 new screenshots.
- Corrects selected XAML examples, geometry explanations, and comparison-image alt text.
- Adds a
LineGeometryworkaround note and refreshes page metadata.
| File | Description |
|---|---|
docs/user-interface/controls/shapes/rectangle.md |
Versions filled and rounded rectangle screenshots. |
docs/user-interface/controls/shapes/polyline.md |
Versions stroke, dash, and fill-rule screenshots. |
docs/user-interface/controls/shapes/polygon.md |
Versions polygon and fill-rule screenshots. |
docs/user-interface/controls/shapes/path.md |
Versions triangle path screenshots. |
docs/user-interface/controls/shapes/line.md |
Versions line screenshots and sets dashed-line thickness. |
docs/user-interface/controls/shapes/index.md |
Versions shape screenshots and clarifies comparison images. |
docs/user-interface/controls/shapes/geometries.md |
Versions geometry screenshots, corrects examples, and documents a workaround. |
docs/user-interface/controls/shapes/fillrules.md |
Versions fill-rule screenshots and aligns the arcs example. |
docs/user-interface/controls/shapes/ellipse.md |
Versions ellipse and circle screenshots. |
docs/user-interface/brushes/solidcolor.md |
Versions brush screenshots and the property-element color example. |
docs/user-interface/brushes/radialgradient.md |
Versions radial gradient screenshots. |
docs/user-interface/brushes/lineargradient.md |
Versions linear gradient screenshots. |
Review effort: Balanced
.NET MAUI 8 and 9 have the same LineGeometry.AppendPath and PathF.LineTo code, so the problem isn't limited to .NET MAUI 10 and 11. 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 e337d0e: 💡 Validation status: suggestionsThis comment lists only the first 25 files in the pull request. docs/user-interface/brushes/media/lineargradient/diagonal-net11.png
docs/user-interface/brushes/media/lineargradient/horizontal-net11.png
docs/user-interface/brushes/media/lineargradient/vertical-net11.png
docs/user-interface/brushes/media/radialgradient/bottom-right-net11.png
docs/user-interface/brushes/media/radialgradient/center-net11.png
docs/user-interface/brushes/media/radialgradient/top-left-net11.png
docs/user-interface/brushes/media/solidcolor/hex-net11.png
docs/user-interface/brushes/media/solidcolor/predefined-brush-net11.png
docs/user-interface/brushes/media/solidcolor/predefined-color-net11.png
docs/user-interface/controls/shapes/media/aspect-net11.png
docs/user-interface/controls/shapes/media/dashed-rectangle-net11.png
docs/user-interface/controls/shapes/media/ellipse-net11.png
docs/user-interface/controls/shapes/media/ellipse/circle-net11.png
docs/user-interface/controls/shapes/media/ellipse/filled-net11.png
docs/user-interface/controls/shapes/media/fillrule/nonzero-gaps-net11.png
docs/user-interface/controls/shapes/media/fillrule/nonzero-net11.png
docs/user-interface/controls/shapes/media/geometry/beziersegment-net11.png
docs/user-interface/controls/shapes/media/geometry/clip-ellipsegeometry-net11.png
docs/user-interface/controls/shapes/media/geometry/geometrygroup-net11.png
docs/user-interface/controls/shapes/media/geometry/linesegments-net11.png
docs/user-interface/controls/shapes/media/geometry/multiple-pathfigures-net11.png
docs/user-interface/controls/shapes/media/geometry/polybeziersegment-net11.png
docs/user-interface/controls/shapes/media/geometry/polylinesegment-net11.png
docs/user-interface/controls/shapes/media/geometry/polyquadraticbeziersegment-net11.png
docs/user-interface/controls/shapes/media/geometry/quadraticbeziersegment-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:
e337d0ea456d629533b6606d4411a9a756756338↑ The LineGeometry problem was reproduced at runtime on .NET MAUI 10.0.60 (iOS simulator). The root cause and the SR2 fix (dotnet/maui#39975) were checked in the MAUI source branches.
↑ A per-version render script confirms balanced monikers and image paths: .NET 8–10 render the original images, .NET 11 renders 43
-net11images.↑ GPT 6.1 technical and Sonnet reader reviews; findings applied, including a 200×200 size for the Uniform GeometryGroup example.
↑ The automated review comment (note scope for .NET 8 and 9) is addressed after checking the net8.0 and net9.0 sources.
↑ All PR checks passed on this revision.
↓ No local DocFX build, and the XAML wasn't compiled as written.
↓ dotnet/maui-samples#800 and #801 aren't merged yet.
Summary
The ShapesDemos and BrushesDemos samples were redesigned for .NET 11 in dotnet/maui-samples#800 and dotnet/maui-samples#801. The redesign exists only in the .NET 11 samples, so this PR adds the new screenshots behind
>=net-maui-11.0monikers. .NET 8–10 keep the original screenshots. It uses the same-net11.pngnaming as #3640 and later PRs.Changes (shapes: 9 pages, brushes: 3 pages)
*-net11.pngfiles next to the originals: 34 shapes and 9 brushes. They're iOS captures at 1x, the same scale as most of the originals.Borderfrom the snippets; the originals showed a full-width rectangle.*-annotated.png).gradient-axis.png,gradient-stops.png).LineGeometry.AppendPathcallsPathF.Move, which offsets the path, instead ofMoveTo. So aPathwhoseDatais aLineGeometrydraws nothing. I reproduced this on .NET MAUI 10.0.60, and the sample session saw it on .NET MAUI 11 on iOS and Android. The fix, Fix LineGeometry path construction across platforms maui#39975, ships in .NET 11 SR2 and isn't in the .NET 8, 9, or 10 release branches, which have the same code. The note gives theLineorPathGeometryworkaround.LinesetsStrokeThickness="4".Aspect="Uniform"andHorizontalOptions="Start", plus a 200×200 size, because aUniformpath needs bounded dimensions.HorizontalOptions="Start".SolidColorBrushproperty element example usesLightSteelBlue, as the sample does.PolyQuadraticBezierSegmenttext says the second curve starts at (150,50).ai-usage: ai-assistedandms.dateare added to the changed pages.Before and after
Notes for reviewers
Path.RenderTransformoutput appears to be clipped to the path's bounds; I haven't verified this or found a MAUI issue for it, sopath-transforms.md(no screenshots) is unchanged.<!-- Path data goes here -->placeholder is unchanged.-net11file name triggers the non-blockingimage-name-incompletebuild suggestion.Sample PRs: dotnet/maui-samples#800, dotnet/maui-samples#801