In my Xamarin Forms iOS application the previous page name is also appearing with the back button in all pages. Is there any way to hide the title of the previous page?
相关问题
- Xamarin. The name 'authorEntry does not exist
- How to implement only emoji keyboard for Entry?
- Error:Xamarin.Forms targets have been imported mul
- Store data and global variables using the Applicat
- System.IO.MemoryMappedFiles on MonoTouch?
相关文章
- Xamarin form MessagingCenter Unsubscribe is not wo
- Reload data on tab selected in a fragment using vi
- The type initializer for 'SQLite.SQLiteConnect
- What to use for AttributeName in Xamarin Mac
- How to use native C++ libraries in Mono for Androi
- Start an Activity from another Activity on Xamarin
- Xamarin build error: defining a default interface
- Xamarin Android Player Error when attempting to fi
If you use Navigation Page, you can use an empty string for the Back button title:
As far as I remember, it will affect the next page on the navigation stack (the page after 'this' will have an empty Back button title). Don't quote me on this.
You can completely hide the Back button with:
Another option is to use a Modal page by replacing
Navigation.PushAsync(yourPage)
withNavigation.PushModalAsync(yourPage)
which will present the page modally.FYI, the back button is automatically populated with the Title property of the previous page (or it will default to Back if the Title was not set).
There is also one workaround to hide back button title globally in whole application. Add in your AppDelegate.cs in FinishedLaunching method:
Adding to Cuckooshka answer, back button title gets hidden in landscape mode as
If you navigate from Page1 to Page2, then in Page1:
If everything is correct, in Page2 you will not see the title of navigation bar.