Skip to content

Changing Shell Tab Visibility when navigating back multiple pages ignores Shell Tab Visibility #33351

@TrueMoniker

Description

@TrueMoniker

Description

While navigating back multiple pages, ie Shell.Current.GoToAsync("../.."), if I change the Shell Tab Bar visiblity, the tab bar is not visible.

Steps to Reproduce

An Example repro is provided for your convenience.

  1. Create a new project
  2. In the Shell, add a tab bar with a tab in it.
  3. Add a page that is opened from the tab bar's page.
  4. Add a page that is opened from the page you just added
  5. On the last page, add a button
  6. In the button, navigate back two pages: await Shell.Current.GoToAsync("../..");
  7. In the Tab Bar's OnAppearing, show the tab bar: Shell.SetTabBarIsVisible(<your Shell>, true));
  8. In the navigation from tab bar's page to the first page, hide the tab bar: Shell.SetTabBarIsVisible(<your Shell>, false));

Link to public reproduction project repository

TrueMoniker/Maui_BugDemo_ShellVisibilityOnNavigation

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

.NET 6

Affected platforms

iOS, Android

Affected platform versions

Confirmed on ios 26.2, Android 15

Did you find any workaround?

If I navigate back by individual pages, ie Shell.Current.GoToAsync(".."); Shell.Current.GoToAsync(".."), it works fine. Though that does cause an odd visual behavior because of closing two pages.

Thank you for the assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyouti/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions