Shell Bottom Tab Bar Hide if set to True SetTabBarIsVisible

Anonymous
2020-12-01T08:50:00.687+00:00

Hi

I am facing issue on iOS devices if SetTabBarIsVisible="True" set on Xaml file then below tabbar is not visiable but same also work on Android devices. can anyone help on this.

in previous page tabbar shell is hide when click on button then navigate to another page using below code

await nav.PushAsync(page, animated);

on next page i am using below code.

protected override void OnAppearing()
{
base.OnAppearing();
Constants.IsTabBarVisible = true;
Shell.SetTabBarIsVisible(this, true);
Shell.SetNavBarIsVisible(this, true);
NavigationPage.SetHasBackButton(this, false);
}

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lucas Zhang - MSFT 336 Reputation points
    2020-12-01T10:50:56.337+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    In your case you could set the SetTabBarIsVisible as true when leave from the previous page .

    In previous page

    protected override void OnDisappearing()
     {
            base.OnDisappearing();
    
            Shell.SetTabBarIsVisible(this, true);
            Shell.SetNavBarIsVisible(this, true);
            NavigationPage.SetHasBackButton(this, false);
    
    }
    

    Best Regards,

    Lucas Zhang

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful