Is there a way to Navigate to a FlyoutItem within AppShell #18316
Unanswered
DP-Technology-LLC
asked this question in
Q&A
Replies: 0 comments
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.
-
For this we will write this in the context of Android (ie: "tabs").
In AppShell if you create:
When you tap on Parent2, you see 3 tabs (Child 2A, Child 2B and Child 2C) which you can tap on. If you tap on Child 2B, then in the Flyout Menu you tap on Parent1, then in the Flyout Menu you tap on Parent2 again, .Net MAUI remembers you were on Child 2B and that is what you see.
We would like to reproduce this behavior using Shell.Current.GoToAsync. Everything is so close to good if we use:
However if we have the above code in Child1A, there is no Back Navigation Arrow that will navigate back to Child1A from Parent2.
The closest thing we could come up with is:
However you don't get the Child2A, Child2B and Child3B tabs, you still have the Child1A and Child1B tabs on your screen. Child1A tab is still selected but you now see the Child2A view. Clicking on the Back Navigation Arrow shows the Child1A view again.
Is what we are asking possible?
Beta Was this translation helpful? Give feedback.
All reactions