I'm working on a Xamarin Forms App.I have a Master Detail Page and my Detail Page is of type Tabbed Page which has some views in that. Is it possible to have Custom tool Bar on the Top of Detail Page. I'm able to hide the existing Tool Bar, but the Tab Page is not allowing me to create any Content above it.
1 Answers
I did some research about custom toolbars, and apparently its possible to implement a view and customise it.
This answer shows how it can be done in iOS, but does not show how to render it in android.
When dealing with the navigation bar in Xamarin Forms, is pretty limited what we can do related to customization. So when this is needed there are generally two approaches people follow:
Hide the Xamarin Forms navigation bar and implementing a custom one using any forms layout. The problem with this approach might be
handling the glitches caused by navigation transitions especially on Android when using the forms navigation bar on some pages and in
other's not.Implement customization on each platform by using custom renderers.
This blog walks through implementing customization using custom renderers. For the full code, and extended example of a custom render for the navigation bar, look at CrossGeeks sample. The advantage of using a custom renderer that inherits from the Navigation Page is that you won't lose features like that native back button and the animation of the master-detail page.
Some screenshots of their examples below: