0

I need to get rid of only the arrow in the navigation bar in Xamarin forms. I tried in but I didn't get a proper solution. please help me overcome this issue. Thanks in advance. !! I NEED TO REMOVE PERMANENTLY

solutions that I'm tried up to now :

Shell.SetBackButtonBehavior(this, new BackButtonBehavior { IsEnabled=false }); 

but still, this didn't help me

enter image description here

2

2 Answers 2

4

There is a easy workaround to solve this.

You could override a Icon with a transparent png file(Follow is a transparent png):

enter image description here

and set enabled be false as follows:

Shell.SetBackButtonBehavior(this, new BackButtonBehavior { IconOverride = "transparent.png", IsEnabled = false }) ; 

Then the effect as follows:

enter image description here

Note: You will see that we also can tap that area, therefore we need to set enabled be false.

Based on this official sample to test that.

Sign up to request clarification or add additional context in comments.

Comments

0

You can set this using the Xamarin.Forms.NavigationPage class, from within a view's code behind file. E.g. within a ContentPage's constructor.

NavigationPage.SetHasBackButton(this, false); 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.