Use this generator to create a page-mapping dictionary class for JsonNavigationService, and configure it by callingNavService.Initialize(NavView, NavFrame, NavigationPageMappings.PageDictionary).
This generator reads the JSON file and extracts each UniqueId along with its corresponding page type.
How To Use it?
Just add an AdditionalFiles entry to your .csproj.
1 | <ItemGroup> |
Namespace
You can define your own namespace by adding a property to a PropertyGroup.
1 | <PropertyGroup> |
Result
The result is a mapping dictionary similar to the following:
1 | public partial class NavigationPageMappings |