Skip to content

feat(skills): fill five gaps in AncestorBinding, cards, SafeArea, Simple icon buttons and MVUX selection - #210

Merged
kazo0 merged 5 commits into
mainfrom
dev/steve/upstream-skill-gaps
Oct 28, 2026
Merged

kazo0 merged 5 commits into
mainfrom
dev/steve/upstream-skill-gaps

Conversation

@kazo0

@kazo0 kazo0 commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): n/a (internal)

PR Type

  • Bugfix
  • Feature
  • Documentation content changes

What is the current behavior?

Five gaps in the toolkit, themes and MVUX references, each of which leads agents to write markup that compiles but misbehaves:

  • AncestorBinding: the reference doesn't say which escape works where. ItemsControlBinding binds nothing inside an ItemsRepeater or a FeedView ValueTemplate.
  • Cards: IsClickable defaults to True, so presentational cards highlight under the pointer like buttons.
  • SafeArea: the reference writes InsetMode.Margin; the XAML value is Margin.
  • Simple icon buttons: the decision table maps "icon-only action" to IconButtonStyle, which in Simple is the filled primary button. Every toolbar icon in a Simple app becomes a primary call to action.
  • MVUX selection: nothing covers wiring master-detail through SelectionChanged/ItemClick, binding SelectedItem inside a FeedView template (it resolves against FeedViewState), or .Selection(state) on an ItemsRepeater (no selection surface).

What is the new behavior?

  • 4a2734b, AncestorBinding picks its escape by template scope. A table for ListView, ListView inside a FeedView, ItemsRepeater and nested templates, plus two pitfalls.
  • d3ee11d, cards nothing clicks set IsClickable="False".
  • c4769f5, SafeArea writes Mode="Margin".
  • 2dc5648, Simple apps pick icon buttons by emphasis. A High/Medium/Low table in simple-styles.md (IconButtonStyle, SimpleIconButtonNeutralStyle, SimpleIconButtonSubtleStyle). The semantic decision table now says how the key differs between Material and Simple.
  • 37d6007, MVUX selection drives detail views without a SelectedItem binding. Four rules covering the three cases above.

Reviewer's guide

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

🤖 Generated with Claude Code

https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74

kazo0 and others added 5 commits October 28, 2026 13:08
- ItemsRepeater derives from FrameworkElement, so ItemsControlBinding walks past it.
- Inside a FeedView ValueTemplate the list's DataContext is the FeedViewState.
- WinUI RelativeSource has only Self and TemplatedParent; no FindAncestor.
- Verified against uno.toolkit.ui@71e1615 (AncestorBindingExtension, ItemsControlBindingExtension), uno (ItemsRepeater, RelativeSourceMode) and uno.extensions@3d9a62a (FeedView).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74
- IsClickable defaults to true (CardContentControl.Properties.cs) and drives the PointerOver/Pressed states (CardContentControl.cs), so presentational cards highlight like buttons.
- Verified against uno.toolkit.ui@71e1615.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74
- XAML takes the bare enum value, as the toolkit samples write it.
- Verified against uno.toolkit.ui@71e1615 (SafeArea.InsetMode, SafeAreaSamplePage.xaml).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74
- Simple maps IconButtonStyle to SimpleIconButtonStyle, a FilledButtonBackground (PrimaryBrush) circle; Material's is transparent.
- Adds the High/Medium/Low table (IconButtonStyle, SimpleIconButtonNeutralStyle, SimpleIconButtonSubtleStyle) and points the semantic decision table at it.
- Verified against unoplatform/Uno.Themes@5307ea0 (Simple SemanticStyles.xaml, Button.xaml, Material v2 Button.xaml).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74
…em binding

- .Selection(state) pushes the selected item to and from a ListView, including inside a FeedView (uno.extensions doc/Reference/Reactive/in-apps.md#selection).
- A SelectedItem binding inside a FeedView template resolves against FeedViewState; escape with AncestorBinding.
- ItemsRepeater derives from FrameworkElement and has no selection surface.
- Verified against unoplatform/uno.extensions@3d9a62a and unoplatform/uno.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74
@kazo0
kazo0 marked this pull request as ready for review October 28, 2026 17:12
@kazo0
kazo0 merged commit dc08104 into main Oct 28, 2026
6 checks passed
@kazo0
kazo0 deleted the dev/steve/upstream-skill-gaps branch October 28, 2026 17:12
kazo0 added a commit that referenced this pull request Nov 3, 2026
…ple icon buttons and MVUX selection (#210) (#211)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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