Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating Directly to a Specific Tab in #60

Open
andersonvieiragomeslopes opened this issue Oct 9, 2024 · 0 comments
Open

Navigating Directly to a Specific Tab in #60

andersonvieiragomeslopes opened this issue Oct 9, 2024 · 0 comments

Comments

@andersonvieiragomeslopes

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant