SimpleToolkit
SimpleToolkit copied to clipboard
Navigating Directly to a Specific Tab in
I'm facing an issue with navigating directly to a different page (e.g., MapPage) instead of returning to the root (HomePage). When I use await Shell.Current.GoToAsync("///" + "MapPage", navigationParameter);, the pages in the navigation stack appear to close, which is not a smooth experience.
To work around this, I implemented a workaround using:
await _navigationService.NavigateBackAsync();
await Task.Delay(500);
await _navigationService.NavigateBackAsync();
await Task.Delay(500);
var navigationParameter = new Dictionary<string, object>()
{
{ "Response", null }
};
await Shell.Current.GoToAsync("///" + "MapPage", navigationParameter);
While this avoids the issue of pages closing, it creates a poor user experience as the icons on the TabBarView do not update since the navigation is not done through the tab buttons.
Expected Behavior: I would like to navigate directly to a specific tab page at any time, regardless of how many pages are in the stack, without encountering the visual issues of pages closing. Is there a built-in solution for this in SimpleToolkit?
Additional Information: If there’s a way to achieve smooth navigation that updates the TabBarView icons, that would greatly improve the user experience.
Feel free to add any additional details or context that you think might help!