Repository navigation
feat(skills): fill five gaps in AncestorBinding, cards, SafeArea, Simple icon buttons and MVUX selection - #210
Merged
Merged
Conversation
- 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
marked this pull request as ready for review
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): n/a (internal)
PR Type
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:
ItemsControlBindingbinds nothing inside anItemsRepeateror a FeedViewValueTemplate.IsClickabledefaults toTrue, so presentational cards highlight under the pointer like buttons.InsetMode.Margin; the XAML value isMargin.IconButtonStyle, which in Simple is the filled primary button. Every toolbar icon in a Simple app becomes a primary call to action.SelectionChanged/ItemClick, bindingSelectedIteminside a FeedView template (it resolves againstFeedViewState), or.Selection(state)on anItemsRepeater(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 setIsClickable="False".c4769f5, SafeArea writesMode="Margin".2dc5648, Simple apps pick icon buttons by emphasis. A High/Medium/Low table insimple-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 aSelectedItembinding. Four rules covering the three cases above.Reviewer's guide
Test-Plugin.ps1passes.card.mdwas already over the 6,000-character budget; this adds 384 characters (7,537 → 7,921).PR Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01PZQ75kKMaLZ7nkCGjSYW74