Skip to content

Redesign DataBindingDemos with the gallery design system - #796

Open
jfversluis wants to merge 2 commits into
mainfrom
jfversluis-databindingdemos-visual-redesign
Open

jfversluis wants to merge 2 commits into
mainfrom
jfversluis-databindingdemos-visual-redesign

Conversation

@jfversluis

@jfversluis jfversluis commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 9a08dfecb1c8487f488d9c2a07200790da273be5

Dimension Assessment Rationale
Change confidence 9/10 ↑ Clean iOS simulator and Android builds; the only warnings are the 4 deliberate MAUIG2045 warnings the original also has.
↑ All 31 screens captured before and after in light and dark on an iPhone 18 Pro simulator and a physical Pixel 10.
↑ Pixel 10 real-touch: all 29 demos opened from the home page, and every page's interactions checked.
↑ Italic fix reproduced first (upright on an iPhone 17 Pro simulator, iOS 27.2), then verified italic and bold italic on iOS and Pixel 10, including switch on, off and on again.
↑ Pixel 10 shows no double slant or extra bolding with the real italic faces (same ink as before).
↑ New Inter subsets use the recipe that reproduces the bundled Regular and Bold byte for byte.
↑ GPT, Gemini and Sonnet reviews of the redesign and of the italic fix; findings addressed.
↑ CI passed on macos-26 and windows-latest for this head, both building DataBindingDemos.
↓ iOS checked with DevFlow taps and a startup harness on a sample of pages; docs states driven through code.
↓ Windows and Mac Catalyst not run interactively.

Redesigns 11.0/Fundamentals/DataBindingDemos with the shared gallery design system used by ControlGallery (#791), CollectionViewDemos (#793) and PlatformIntegrationDemos (#792). Each page still demonstrates one data binding concept, and the binding markup is unchanged apart from layout and styling, so docs excerpts stay recognizable.

What changed

  • Home page: hero with the .NET 11 rocket bots, search, and category chips. The 29 demos are grouped in the order of the docs: basic bindings, binding mode, string formatting, binding path, value converters, relative bindings, binding fallbacks, multi-bindings, commanding, and compiled bindings. The old home page listed some sections twice and didn't link 10 pages (relative bindings, compiled bindings, commanding, mixed bindings); all are reachable now. NavigationPage replaces the single-page Shell.
  • Every demo page: eyebrow, title, and a lead that names the API and says what to try, then the demo in a card. Light and dark themes throughout. The two C#-only pages use a small Controls/CodePageLayout.cs helper so their binding code is unchanged.
  • Images: the Wikimedia monkey photos are replaced with bundled 3D Fluent Emoji (MIT), using the same Resources/Images/Animals folder, license file, and name mapping as CollectionViewDemos. Seated Monkey and Face-Palm Monkey still have no image, on purpose, for the TargetNullValue demo.
  • fallbackImageUrl in App.xaml changes from a Wikimedia URL to red_question_mark.png (the Fluent Emoji red question mark, bundled). The resource key is unchanged, so {StaticResource fallbackImageUrl} still works as documented.
  • Fonts: Inter (SIL OFL 1.1) and Material Icons Round (Apache 2.0), license files included. OpenSans, user.png, expand.png and collapse.png removed; card avatars and the expander chevron use Material Icons.
  • Small fixes
    • Binding with a source (code and XAML): the slider runs from -2 to 2 and started at 0, so the label was invisible (Scale 0) until you moved it. It now starts at 1.
    • Person entry scrolls, so Submit and Cancel stay reachable on short screens.
    • Italic text was upright on iOS: the Inter fonts are registered by alias, and MAUI on iOS ignores FontAttributes for them (Android fakes the slant). Inter Italic and Bold Italic (same Inter 4.1 source and OFL license, subset like the other Inter files) are now bundled and picked with FontFamily on the binding fallbacks location label and the "Indubitably!" switch style, which gets back its documented FontAttributes="Italic, Bold".
  • README: light and dark screenshots that follow the reader's GitHub theme, and a short "Styling and assets" section.

Screenshots

The screenshots follow your GitHub theme (light or dark). Pages: home, code binding, simple color selector, binding fallbacks, TemplatedParent, and person entry.

iOS (iPhone 18 Pro simulator), before and after:

Before and after on iOS: home, code binding, simple color selector, binding fallbacks, TemplatedParent and person entry pages

Android (Pixel 10), before and after:

Before and after on Android: the same six pages

Validation

  • Built for the iOS simulator (Xcode 27.2) and Android; ran on an iPhone 18 Pro simulator (iOS 27.2) and a physical Pixel 10.
  • Pixel 10 real-touch checks: home search, chip filter, and navigation to all 29 demos. Sliders driving rotation, opacity, HSL, and RGB. Entry text into StringFormat, converter-enabled buttons, the three switch converters, monkey list to details with FallbackValue and TargetNullValue, FindAncestor Delete, expander collapse, color list selection, Person entry CanExecute states, and the decimal keypad.
  • Screenshots of the states shown in the docs were captured for a follow-up docs-maui update behind a .NET 11 moniker.

Apply the shared gallery design system (Inter, Material Icons Round,
light and dark color tokens, demo page header and cards) to every page,
and replace the Shell home page with a searchable, categorized home page
that links all 29 demos. Pages that weren't reachable before (relative
bindings, compiled bindings, and commanding) are now listed.

Replace the Wikimedia monkey photos and the fallback image with bundled
Microsoft Fluent Emoji (MIT), and use the .NET 11 rocket bot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Inter ships one static file per face and the fonts are registered by alias, so
MAUI's iOS font manager loads them with UIFont.FromName and ignores
FontAttributes. "Italic" rendered upright on iOS, while Android synthesized it.

- Bundle Inter Italic and Bold Italic (Inter 4.1, SIL OFL 1.1, covered by the
  existing Inter-LICENSE.txt), subset the same way as the existing Inter files.
- Pick the italic face with FontFamily on the two labels that use italic, and
  restore FontAttributes="Italic, Bold" on the Switch indicators style.
- Note in Styles.xaml that weight and slant come from the font family.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
jfversluis added a commit to dotnet/docs-maui that referenced this pull request Nov 28, 2026
dotnet/maui-samples#796 (9a08dfec) uses the Inter italic faces, so the
Location label on the monkey details page and the "Indubitably!" label
now render italic on iOS, as the excerpts' FontAttributes describe.
Recapture bindingunavailable-detail-net11.png and
switchindicators-net11.png in the same states and crops. The excerpts
are unchanged because they don't show the sample-only FontFamily.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
davidortinau added a commit to dotnet/docs-maui that referenced this pull request Dec 1, 2026
…3643)

* Data binding: fix the French day-name excerpt

Match the sample and its screenshot ("in French", not "in France") and
remove a stray comma between XAML attributes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Data binding (.NET 11): add screenshots and excerpts for redesigned DataBindingDemos

Add .NET 11 versions of all 18 data binding screenshots (*-net11.png)
from the redesigned DataBindingDemos sample behind >=net-maui-11.0.
Earlier versions keep the original screenshots.

Split excerpts that changed with the redesign the same way: the
TargetNullValue example uses a CollectionView and the bundled
red_question_mark.png, the path example binds to the named
VerticalStackLayout and explains why it reports 3 children, the
BoolToObjectConverter colors, and the Self binding BoxView.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Data binding (.NET 11): apply review fixes

Add the "Select a time:" label so the path example reports 3 children
as the screenshot shows, and explain the count. Describe the .NET 11
layout type in the debugging walkthrough, use per-card colors in the
TemplatedParent example, show the as-opened Sienna state for the compiled
color selector, and refer to labels by what they display rather than by
position.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Data binding (.NET 10 and earlier): fix the path and Self examples

Match the 10.0 DataBindingDemos sample in the path example: name the
StackLayout and bind Children.Count to it (a page has no Children),
declare the label that the last binding references, and include the
"Select a time:" label. Describe the third Label accordingly. In the
Self example, use x:DataType="BoxView", because the binding source is
the BoxView itself.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Data binding (.NET 11): recapture italic labels in two screenshots

dotnet/maui-samples#796 (9a08dfec) uses the Inter italic faces, so the
Location label on the monkey details page and the "Indubitably!" label
now render italic on iOS, as the excerpts' FontAttributes describe.
Recapture bindingunavailable-detail-net11.png and
switchindicators-net11.png in the same states and crops. The excerpts
are unchanged because they don't show the sample-only FontFamily.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: David Ortinau <david.ortinau@microsoft.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