uno-navigation-routes

Register Uno Platform navigation routes using ViewMap, DataViewMap, ResultDataViewMap and RouteMap.

9|1|Updated Dec 10, 2024
One-click install
npx skills add https://github.com/unoplatform/studio --skill uno-navigation-routes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uno-navigation-routes
Source: https://github.com/unoplatform/studio/tree/main/plugins/uno-platform-studio/skills/uno-navigation-routes
Command: npx skills add https://github.com/unoplatform/studio --skill uno-navigation-routes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Uno Platform navigation requires a clean, scalable approach to wiring views, viewmodels, and navigation flows. This Skill guides you to define and register routes using ViewMap, DataViewMap, ResultDataViewMap, and RouteMap.

Core Features & Use Cases

  • Define ViewMap to connect Views with ViewModels.
  • Use DataViewMap and ResultDataViewMap for data- and result-driven navigation.
  • Create RouteMap hierarchies to support nested navigation paths and dependencies.

Quick Start

Set up a new route structure by registering routes in App.xaml.cs and creating the corresponding ViewMap/DataViewMap mappings, then test navigation flows.

Frequently Asked Questions about uno-navigation-routes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define and register navigation routes in an Uno Platform app?

You can register navigation routes in Uno Platform by configuring ViewMap, DataViewMap, ResultDataViewMap, and RouteMap entries within the App.xaml.cs RegisterRoutes pattern to wire views and viewmodels.

What is the difference between ViewMap and DataViewMap in Uno Platform navigation?

ViewMap connects Views to ViewModels for standard navigation, whereas DataViewMap and ResultDataViewMap enable data-driven navigation and result-returning navigation flows respectively.

How do I create nested route hierarchies using RouteMap in Uno Platform?

You create nested route hierarchies in Uno Platform by defining RouteMap structures that map dependencies and nested navigation paths, supporting complex multi-level application flows.

When do I need ResultDataViewMap for Uno Platform navigation?

You need ResultDataViewMap when implementing result-driven navigation in Uno Platform that requires returning data or outcomes back to the calling view after a navigation flow completes.

Do I need to modify App.xaml.cs to set up Uno Platform navigation routes?

Yes, setting up Uno Platform navigation routes requires modifying App.xaml.cs to implement the RegisterRoutes pattern, establishing the ViewMap and RouteMap mappings for your application.

Can I use Uno Platform navigation routes for data-driven viewmodel binding?

Yes, Uno Platform navigation routes support data-driven viewmodel binding by leveraging DataViewMap to pass data parameters during navigation and automatically wire views to their corresponding viewmodels.