Skip to content

Cannot create my custom navigation service wrapper #2037

Answered by nickrandolph
ste8 asked this question in Q&A
Discussion options

You must be logged in to vote

@ste8 I think if you register the MyNavigationService using AddScopedInstance this should address this issue.

Scoping is used as a way of keeping multiple navigation stacks independent from each other. For example if you have a Frame that has a navigation stack (similar to the Frame's backstack) but then within any of those pages you might have a TabBar which has it's own navigation stack.

We create a new scope for each navigation region, so you'll get a different INavigator for each navigation region. INavigators aren't related to each other, but do map to a navigation region, and navigation regions are typically part of a hierarchy defined by the application flow.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ste8
Comment options

Answer selected by sasakrsmanovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants