Skip to content

Navigating Directly to a Specific Tab in #60

@andersonvieiragomeslopes

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions