Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to hide Tab Bar on some pages

$
0
0

I'm using a TabbedPage and would like to hide the Tab Bar on some pages, i.e. show the bar on page A, navigate to page B and have it be hidden.

Specifically I'm looking at how to implement this on iOS, using Xamarin Forms. I've found a few potential solutions, but none of them are working correctly for me. The solutions here and here do hide the bar, but shows an empty space where the bar would be.

Now I'm trying to implement the solution here in Xamarin Forms to see if the space would be reclaimed. In order to get to the HidesBottomBarWhenPushed property, I'm using a custom page renderer, but it isn't hiding the Tab Bar. Here's my code:

public class BaseContentPageRenderer : PageRenderer
{
    public BaseContentPageRenderer ()
    {
        HidesBottomBarWhenPushed = true;
    }
}

Viewing all articles
Browse latest Browse all 75885

Trending Articles