Xamarin.forms: Page TitleAlignment Property

Created on 23 Jul 2019  Â·  2Comments  Â·  Source: xamarin/Xamarin.Forms

Hi,

Please add TitleAlignment to the ContentPage which will Have the following values:

  • Right
  • Left
  • Center

This will allow users to align the title without having to write custom render or use cusom layout, e.g. Grids.

Thanks,
Jassim

4 proposal-open enhancement âž•

Most helpful comment

@jrahma you could easily achieve this using the TitleView with a centered label, that would do the trick.

https://developer.xamarin.com/samples/xamarin-forms/Navigation/TitleView/

Even though I agree with this, if I'm not mistaken, if you center NavigationView contents and the NavigationPage have a master detail toggler, back arrow or toolbarItem, it will no center correctly.

All 2 comments

@jrahma you could easily achieve this using the TitleView with a centered label, that would do the trick.

https://developer.xamarin.com/samples/xamarin-forms/Navigation/TitleView/

@jrahma you could easily achieve this using the TitleView with a centered label, that would do the trick.

https://developer.xamarin.com/samples/xamarin-forms/Navigation/TitleView/

Even though I agree with this, if I'm not mistaken, if you center NavigationView contents and the NavigationPage have a master detail toggler, back arrow or toolbarItem, it will no center correctly.

Was this page helpful?
0 / 5 - 0 ratings