How to hide net maui tabbar correctly?

2023-03-28T10:26:43.95+00:00

How to hide net maui bottom tabs correctly?

To see it, create maui project, add two pages, name them FirstPage, SecondPage.

add shell tabbar, for example two tabs: 1st tab, 2nd tab, set datatemplate for them FirstPage.

Then create in FirstTab Button to navigate to the SecondPage, in the SecondPage set "TabBarIsvisible=False", then you'll see that Shell.Tab's not disappearing immediately, how it was in Xamarin.Forms,

How can i fix that?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,482 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-03-31T09:47:32.46+00:00

    I overrided the OnAppearing method, but anyway bottom tabs disappears in main(parent page), only after that navigates to the second page, you can see it:
    https://github.com/dotnet/maui/discussions/14226


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.