Uno Navigation Responsive Shell — Agent Skill
Reference Templates
For a complete, compilable responsive shell XAML with parameterized placeholders, see:
references/shell-responsive-template.md — Contains:
- Icon lookup table (Home, Search, Settings, Profile, etc.)
- SHELL_PAGE_NAME.xaml responsive shell template (NavigationView + TabBar + VisualStateManager)
- Breakpoint summary table (Narrow / Normal / Wide)
- Route registration template
- Substitution rules
Workflow
Docs lookup: call
uno_platform_docs_search(...)first, thenuno_platform_docs_fetch(sourcePath="…")using thesourcePathfield from a result (a relative.mdpath; add the result'sanchorfor a section). Never pass a URL, a.htmllink, or a hand-built path.
Step 1: Fetch the Responsive Shell Documentation
uno_platform_docs_search("Uno Navigation responsive shell NavigationView TabBar adaptive screen size")
Primary documentation page:
- Build Responsive Navigation Layouts:
external/uno.extensions/doc/Learn/Navigation/Walkthrough/ResponsiveShell.md
Fetch the walkthrough:
uno_platform_docs_fetch(sourcePath="external/uno.extensions/doc/Learn/Navigation/Walkthrough/ResponsiveShell.md")
Step 2: For ResponsiveExtension
If using the Toolkit's ResponsiveExtension:
uno_platform_docs_search("Uno Toolkit responsive extension screen size breakpoints")
See also the uno-toolkit-responsive skill.
Key Principles (Stable)
- Use VisualStateManager with adaptive triggers to show/hide different navigation controls
- Both TabBar and NavigationView can use the same region names for shared content
ResponsiveExtensioncan toggle Visibility based on breakpoints (Normal, Wide, etc.)- The content area remains the same — only the navigation control changes
- Common pattern: TabBar at bottom for mobile, NavigationView sidebar for desktop
- XAML namespaces:
xmlns:uen="using:Uno.Extensions.Navigation.UI"andxmlns:utu="using:Uno.Toolkit.UI"
Breakpoint Summary
| State | Width | TabBar | NavigationView Pane | Use Case |
|---|---|---|---|---|
| Narrow | < 700px | Visible | Hidden | Mobile phones |
| Normal | 700-999px | Hidden | Visible (auto) | Tablets |
| Wide | >= 1000px | Hidden | Visible (expanded) | Desktops |
Critical Rules
- Both navigation controls (
NavigationViewandTabBar) MUST haveuen:Region.Attached="True" - Both MUST use identical
uen:Region.Namevalues for the same pages — they share the content area - The
VisualStateManagergoes on the rootGridwithuen:Region.Attached="True" - The
Narrowstate has NOStateTriggers— it is the default (smallest) state - States are ordered by ascending width: Narrow (default) < Normal (700px) < Wide (1000px)
- The shared content area with
Region.Navigator="Visibility"serves both navigation controls - The content area Grid with
Region.Navigator="Visibility"must be empty in XAML. Do not addCollapsedchild elements for each route. The navigation framework resolves registered routes and injects the corresponding views at runtime. - Do NOT use
Region.Attached="True"insideShell.xaml— only inSHELL_PAGE_NAME.xaml
Related Skills
- [[uno-navigation-tabbar]] — Mobile-only shell
- [[uno-navigation-navigationview]] — Desktop-only shell
- [[uno-navigation-panel-visibility]] — Visibility-based content switching details
- [[uno-toolkit-responsive]] — Responsive markup extensions
- [[uno-navigation-regions]] — Region concepts