Forum Xamarin.Forms

Is possible to align image on the left in the barnavigation?

pnet1pnet1 USMember ✭✭✭✭

I did this

<ContentPage.ToolbarItems>
        <ToolbarItem Name="icoImage" Order="Primary" Icon="person.png" Priority="0" />
    </ContentPage.ToolbarItems>

i have this

see that person.png is alignment on the right and how can i do to align on the left?

Tagged:

Answers

  • juanzeta33juanzeta33 USMember ✭✭

    You tried the NavigationPage.SetTitleIcon="image.png" ? this only works for me in PCL projects in Android.
    Remember to save the picture in each project that you are using it!

  • pnet1pnet1 USMember ✭✭✭✭

    I tried and not worked. I was seeing the what's app bar and the icons are on the right too, then for me is ok.

  • juanzeta33juanzeta33 USMember ✭✭

    What about to change it in the IconName property in the MainActivity in Android Project directly?

  • pnet1pnet1 USMember ✭✭✭✭

    I'd like that name comes from a property or login. I'd like to show the email of the user logged. But the size is too big then i would change the size and color and i'm not getting.

  • juanzeta33juanzeta33 USMember ✭✭

    @pnet1 said:
    I'd like that name comes from a property or login. I'd like to show the email of the user logged. But the size is too big then i would change the size and color and i'm not getting.

    Were talking about image or text? Be more specific!

Sign In or Register to comment.