How to align left a navigation bar Title in iOS using Xamarin forms

JRolandrosJRolandros FRMember ✭✭

Hello, is there a way to align left the title of a navigation bar of a page when using MasterDetailPage? By default it seems to be centered in iOS
But I want it to be left-align as in android.
Thank you all.
here is what i have now
image

And here is what I want:
image

Posts

  • ExibExib USMember

    I would like to accomplish the same thing, @JRolandros have you found any solution to this ?

  • yuriy8400yuriy8400 USMember, University

    Same question. Still no solution?

  • JRolandrosJRolandros FRMember ✭✭

    @Exib said:
    I would like to accomplish the same thing, @JRolandros have you found any solution to this ?

    Not yet still looking for any workaround. sorry

  • mubimubi USMember ✭✭✭

    any solution ???

  • Ezra.UEzra.U USMember

    Any solution yet?

  • HamdiHakanHamdiHakan TRMember ✭✭

    Any solution yet?

  • VelocityVelocity NZMember ✭✭✭
    Custom navigation page renderer should do the trick.
  • Idres.6976Idres.6976 USUniversity

    var label = new UILabel();
    label.Text = title;
    label.Font = UIFont.FromName(Strings.OpenSans_Bold, 30f);
    label.TextAlignment = UITextAlignment.Left;
    label.SizeToFit();
    NavigationController.NavigationBar.TopItem.LeftBarButtonItem = new UIBarButtonItem(label);

  • BrainsBrains Member

    Thank you Idres.6976
    The only change I've done:
    NavigationItem.SetLeftBarButtonItem(new UIBarButtonItem(label), true);

Sign In or Register to comment.