Reputation: 129
I'm trying to hide or remove the Navigation Bar in Xamarin Shell Application. but it didnt work for IOS or Android .Please Help
Upvotes: 3
Views: 1499
Reputation: 129
Finally I found the answer.
Shell.SetNavBarIsVisible(this, false);
I added this code line to the constructor now it works. Thank you vary much for answers.
Upvotes: 6
Reputation: 98
just add NavigationPage.HasNavigationBar="False"
in the Content Page tag after adding this to you code it will look someting like this
<ContentPage
x:Class="YouAppPackage.View.PageName"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
NavigationPage.HasNavigationBar="False">
or you can also set it from pages code behind
NavigationPage.SetHasNavigationBar(this, false);
after adding this your code will look something like this
public YourPageName()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
}
hope this helps you
Upvotes: 0
Reputation: 526
On the Backend so the Xaml.cs
Rather add the follow within your page constructor:
NavigationPage.SetHasNavigationBar(this, false);
Upvotes: 0