Making a nav bar disappear in Xamarin.Forms

前端 未结 2 511
迷失自我
迷失自我 2021-01-03 23:47

I\'m completely new to Xamarin.Forms and C#, and I\'m wondering how I can present a stack of Pages within a NavigationPage, without showing the navigation bar. Here\'s my co

相关标签:
2条回答
  • 2021-01-04 00:01

    In StartPage, add this (in the constructor or ViewAppearing)

    NavigationPage.SetHasNavigationBar(this, false);
    
    0 讨论(0)
  • 2021-01-04 00:01

    In XAML it can be done as follows, inside ContentPage definition

    NavigationPage.HasNavigationBar="False"
    
    0 讨论(0)
提交回复
热议问题