Skip to content

Redesign ShapesDemos with the gallery design system - #800

Open
jfversluis wants to merge 1 commit into
mainfrom
jfversluis-shapes-brushes-visual-redesign
Open

jfversluis wants to merge 1 commit into
mainfrom
jfversluis-shapes-brushes-visual-redesign

Conversation

@jfversluis

@jfversluis jfversluis commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: e3bd5b7547f5e5abf16267ce0a9bf5a31d8cea11

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Clean iOS simulator and Android builds.
↑ All 23 pages captured in light and dark on an iPhone 17 Pro simulator (iOS 27.2) and an Android 16 emulator, before and after.
↑ Home chip filter, card navigation, search, and the clock checked with real touch on a physical Pixel 10.
↑ Clock hands, moving spiral, render transform sliders, search, navigation, and the landscape layout checked at runtime.
↑ GPT and Claude code reviews and design reviews; findings addressed.
↓ Interactions were driven through code on iOS, not real touch.
↓ Windows and Mac Catalyst not run locally; CI for this revision pending.

Redesigns 11.0/UserInterface/Views/ShapesDemos with the shared gallery design system from CollectionViewDemos (#793). Every page still demonstrates the same shapes with the same XAML, so docs readers can compare it to the Shapes docs.

What changed

  • Home page: hero with the .NET 11 rocket bots, search, and category filter chips. 22 demos in five groups: Shapes, Paths and geometries, Transforms, Brushes and clipping, Drawings.
  • Demo pages: eyebrow, title, and a one-line lead that names the API. Each example has a title and sits on an artboard that stays light in the dark theme, because the shapes use fixed colors such as Black and DarkBlue (in the old dark theme, the cat and clock were invisible).
  • Drawings are framed and fit the screen with a small ScaleToFitView (the clock, flower, cat, hello, and monkey face were off-screen or cut off before).
  • Fonts: Inter (SIL OFL 1.1) and Material Icons Round (Apache 2.0), license files included. OpenSans removed. The dotnet_bot.png is the .NET 11 rocket from ControlGallery.
  • README: light and dark screenshots that follow the reader's GitHub theme, and a short "Styling and assets" section.

Fixes for .NET MAUI 11 behavior

Several demos rendered wrong on .NET MAUI 11 before this change, on both iOS and Android:

  • Analog clock: the hands never moved, because Path doesn't pass its BindingContext to RenderTransform. The bindings now use Source={x:Reference page}. The clock and the flower also used negative coordinates, which Shape now shifts into view per path, so the parts no longer lined up. Both are rewritten with positive coordinates.
  • Aspect="Uniform" paths without a size are measured as zero height inside a VerticalStackLayout (Path, triangle, Bezier curve, and the geometry groups showed nothing). Their artboards now set a height, and the path XAML itself is unchanged.
  • Timers: the clock and moving spiral used a System.Threading.Timer that was only disposed in a finalizer. They now use IDispatcherTimer and run only while the page is visible.
  • Render transforms: the sliders sit next to the path on wide screens, such as a phone in landscape.

Docs alignment

  • Added the docs' Path Data="M 10,100 L 100,100 100,50Z" triangle and the Nonzero GeometryGroup of four circles, which the sample was missing.
  • Removed TranslationY offsets on the "Multiple PathFigures" and arcs GeometryGroup paths, which the docs snippets don't have.

Known framework issues (not fixed here)

  • LineGeometry draws nothing on iOS or Android, so the LineGeometry example is empty.
  • Path.RenderTransform output is clipped to the path's own bounds, so parts of the render transform examples, and all of the two MatrixTransform examples, are cut off. The page's lead explains the clipping.

Screenshots

iOS light, before and after:

Home, Rectangle, Path, Analog clock, Flower, and Render transforms pages on iOS in light theme, before and after

Android dark, before and after:

Home, Polygon, Path geometries, Cat, Hello, and Clipping pages on Android in dark theme, before and after

Validation

  • Built for the iOS simulator (Xcode 27.2) and Android; ran on an iPhone 17 Pro simulator (iOS 27.2) and an Android 16 emulator.
  • Real touch on a physical Pixel 10 (Android 17): the Shapes filter chip, opening Polygon from its card, searching for "clock", and the running clock.
  • Checked at runtime: every page opens; the clock hands rotate; the moving spiral animates; each render transform slider changes the path; search and navigation work on the home page; the render transforms page switches to a side-by-side layout in landscape.
  • Screenshots of the documented states were captured for a follow-up docs-maui update behind a .NET 11 moniker.

Apply the shared gallery design system (from CollectionViewDemos) to the
Shapes sample: a searchable home page grouped by category, and a header plus
an always-light artboard for every example, so the shapes keep their docs
colors in both themes.

Also make the demos work on .NET MAUI 11:
- Fit the drawings to the screen with a small ScaleToFitView.
- Rewrite the analog clock and flower with positive coordinates, and bind the
  clock hands with x:Reference so they rotate.
- Give Uniform paths a height so they're no longer measured as zero.
- Show the render transform sliders next to the path on wide screens.
- Stop the clock and moving spiral timers when their page isn't visible.
- Add the docs' Path triangle and Nonzero GeometryGroup examples, and remove
  TranslationY offsets the docs snippets don't use.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant