Force Shell navigation to replace the navigation stack

Petr Pikaus 5 Reputation points

I have a ShellContent which uses DataTemplateSelector to dynamically select a page to display. Sadly, when I call Shell.Current.GoToAsync with the URI that's active right now (or its child route), it does nothing (or navigates back in the case of the child route) there's no parameter to control this behavior that I'm aware of. Based on the documentation, navigating to //some-uri should replace the navigation stack, but that does not happen.

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,186 questions
{count} votes