How to change the position of the navigation bar title
in Xamarin.Forms.
What i get in default is:
What i want is:
How can i do this in Xamarin.Forms?
How to change the position of the navigation bar title
in Xamarin.Forms.
What i get in default is:
What i want is:
How can i do this in Xamarin.Forms?
If you are using a Xamarin.forms app based on Shell then you can easily achieve this using Shell.TitleView, define your title content, bind it or even style it as you like.
Inside your ContentPage
:
<Shell.TitleView>
<Label Text="Your Title" HorizontalTextAlignment="Center" HorizontalOptions="CenterAndExpand"/>
</Shell.TitleView>
You will avoid you to use a custom renderer.
Also if you need to apply some special platform-dependent adjustments you can use OnPlatform.