I need to navigate to a page, that will have shell flyout menu, but I don't need it present as item in menu.
I have tried routing pages
Routing.RegisterRoute("cart", typeof(Cart));
and then use
Shell.Current.GoToAsync("///cart");
But it throws an error, telling me about the only page in stack. Microsoft documentation doesn't help.
Global routes currently cannot be the only page on the stack, so absolute routing to global routes is not supported. For now, just navigate to: cart/
When I tried
Shell.Current.Navigation.PushAsync(new NavigationPage(new Cart()));
It worked, but topbar was default color and menu button wasn't there.
Also, I have tried to push Cart as a new page, without new NavigationPage()
, topbar has no changes, but menubutton works as BackButton, even though I set a Behaviour
<Shell.BackButtonBehavior>
<BackButtonBehavior IconOverride="back.png"/>
</Shell.BackButtonBehavior>