Where is the correct place to register page route (that is not visible on the flyout menu)?
When page is not visible on the flyout menu, I add it to OnStart
method via App.xaml.cs
protected override void OnStart()
{
Routing.RegisterRoute("RegisterPage", typeof(RegisterPage));
Routing.RegisterRoute("LoginPage", typeof(LoginPage));
}
When page is visible on the flyout menu, I add page routing like this
<FlyoutItem Title="Home" Icon="icon_home.png">
<ShellContent Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}" />
</FlyoutItem>
You should register the route before use it.
From the document: