We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to enable and disable the navigation bar on the main page.

Syncfusion NavigationDrawer in Xamarin has the feature of enabling and disabling the navigation bar on the main page. To attain this condition follow the below given procedure.

 

To Enable and Disable the Navigation bar on Main page follow the below given procedure:

Step 1: Create the NavigationDrawer sample with all necessary assemblies.

 

Step 2: Create an OnAppearing method for the content to be appear on the main page of NavigationDrawer. In this method use buttons to navigate to a page.

 

Step 3: This functions make the content which has to be shown on the Main page of NavigationDrawer.

 

The below code illustrates how to enable and disable the navigation bar in the SfNavigationDrawer.

Code behind Codes for Main Page:

 

Main Page XAML Code:

 

First Page Xaml Code:

 

Second Page Xaml Code:

 

 

Main Page without NavigationBar:

 

 

 

 

 

First Page with NavigationBar:

 

 

Second Page With NavigationBar:

 

 

 

 

 

 

 

 

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7642 04/07/2017 04/07/2017 Xamarin.Forms SfNavigationDrawer
Did you find this information helpful?
Comments
demo demo Apr 02, 2018

please check once this link..https://www.syncfusion.com/support/directtrac/incidents/202494 . if u have any idea regarding this.. please update ur comments here

Reply
FEDERICA LAZZERI Apr 17, 2018
Hi,

i have followed the instructions and everything seems to work.... as well i go ahead (with the pushasync method), but when i go back hitting the "first page" toolbar "back" button i go back... but the
app fall in almost an empty screen.
obviously i don't see the toolbar... but i neither see the page "content".

i don't know if this has something to do with it but in the console log i noticed this error:  
(11175): requestLayout() improperly called by md5270abb39e60627f0f200893b490a1ade.NavigationPageRenderer{3318a3a4 V.E..... ......I. 0,0-1440,2304 #1} during second layout pass: posting in next frame

can you please help me?

Reply
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon