Skip to content

Commit 63216ae

Browse files
docs(skill): add NavigationView usage recipe (#290)
* docs(skill): add NavigationView usage recipe Agents struggle with NavigationView setup — trying incorrect property init patterns. Add complete paste-ready recipe showing SelectedTag, OnSelectionChanged, NavItem, and .Set() escape. Fixes #280 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * refactor: move NavigationView recipe out of getting-started Move inline NavigationView recipe to the reactor-navigation skill where it belongs. The reactor-recipes skill already has a full sidebar-nav.cs recipe. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 182b09d commit 63216ae

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • plugins/reactor/skills/reactor-navigation

plugins/reactor/skills/reactor-navigation/SKILL.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ return NavigationView(
115115
`NavItem(label, icon?, tag?)` creates sidebar items. Icons are Segoe Fluent
116116
Icons names. The `NavigationView` handles selection state.
117117

118+
**Manual wiring (without `UseNavigation`):**
119+
`SelectedTag` and `OnSelectionChanged` are record properties — use `with { }`.
120+
For the settings item: set `IsSettingsVisible = true` and check `args.IsSettingsSelected` (not via tag).
121+
Use `.Set(nv => nv.PaneDisplayMode = ...)` for non-record properties.
122+
118123
## 5. TabView (parallel tabs)
119124

120125
Unlike stack navigation, tabs keep all content alive simultaneously:

0 commit comments

Comments
 (0)