Like the user in this thread this thread, I wanted a Flyout menu but with tabbed navigation - so I added Tabs to my first Flyout Item. In my tabs, I want to use C# to navigate to other tabs - but when I do so with await Navigation.PushAsync(new TabIWantToGoTo());
, my app doesn't actually navigate to that next tab, it stays on the current tab and creates a new instance of that page within it.
My question is - how can I recreate the exact functionality of a user selecting a given tab? I want that tab have its tab icon highlighted and I don't want a separate instance with a back button on my current tab. Here are some images of the issue:
Image of Tab 2, navigated to via the above C# command - You'll see that Tab 1 is still selected and now there is a back button. I'd like, ideally for there to be no back button and for Tab 2 to be selected just like a user would expect when selecting Tab 2 by touch event.
Image of Tab 2, selected by manual user input - No back button, Tab 2 is properly highlighted and Tab 1 is now unhighlighted
Thanks!