How to hide Tab Bar on push in Xamarin.Forms?

前端 未结 4 1180
野性不改
野性不改 2021-01-14 16:04

I\'m struggling for last few days with TabbedPage in Xamarin.Forms on iOS. I found some solutions like those: https://forums.xamarin.com/discussion/20901/hide-t

4条回答
  •  时光取名叫无心
    2021-01-14 16:27

    I have faced with an issue when I need to hide tab bar before it drawn on the screen.

    The solution from Wojciech Kulik helped me but it started blinking on navigating to the tabbed page.

    The code below solved my problem. Hope it'll be helpful for you. Place it in your TabbedRenderer derived class

    public override void ViewWillLayoutSubviews()
    {
        OnTabBarHidden(true); // Hide before the page appear
    }
    

提交回复
热议问题