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

Xamarin.Forms NavigationPage.SetHasNavigationBar does not work on iOS

$
0
0

Hello,

I am having trouble getting NavigationPage.SetHasNavigationBar(this,false) to work properly when working with a Carousel Page.

public App ()
        {
            MainPage = new NavigationPage(new CarouselPageHomePage().mainCarouselPage)
            {
                Title = "NavigationPage",
                BackgroundColor = backgroundColor
            };
            NavigationPage.SetHasNavigationBar(MainPage, false);
        }

I have also tried using NavigationPage.SetHasNavigationBar(this,false), and I am using OnAppearing() to call SetHasNavigationBar false on every page being referenced in the Carousel Page as well as the Carousel Page itself. It doesn't seem to matter, the Navigation Bar is always present on the main Carousel Page no matter what.

Thoughts?


Viewing all articles
Browse latest Browse all 58056

Trending Articles