Add control over Shell's GoToAsync #33197
Unanswered
lionelmennig
asked this question in
Ideas
Replies: 1 comment 6 replies
-
|
What I've been doing is to have a custom navigation service, that is wraps the default From what you described this approach may work for you as well |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to have control over navigation in my custom Shell class, but there is only
OnNavigatingmethod to override which, for example, provides no access to the parameters given in theGoToAsynccall (basically, theDictionary<string, object>).So I thought:
OnNavigating'sShellNavigatingEventArgsparam could give access to these parametersGoToAsyncoverloadsvirtualTask<bool>to decide whether we would go further, or including a way toCancel()current navigation event as perShellNavigatingEventArgs.Cancel())Beta Was this translation helpful? Give feedback.
All reactions