Text and icon position of secondary toolbar items

74hakansukur74hakansukur ✭✭Member ✭✭

Hello

I have an iOS xamarin application and the icons of secondary toolbar items are not centered. It is very strange because the third icon is correct, but the first and second are not. How can I position these icons to center? Is there a default left margin or padding to these items?

I generate toolbar items from code in a similar manner:

ToolbarItem userConditionsMenu = new ToolbarItem()
            {
                Order = ToolbarItemOrder.Secondary,
                Text = Dict.GetTerm("USERCONDITIONS"),
                Icon = "icons8-grapes-20.png",
                Priority = 1,
            };

Thanks

Answers

  • LandLuLandLu Xamurai Member, Xamarin Team Xamurai

    I've already reproduced this issue. I'll look into it and let you know if I found a solution or workaround.

  • 74hakansukur74hakansukur ✭✭ Member ✭✭

    Thank you for your reply, but I have decided I use an another solution, I simple change order of these menupoints from secondary to primary so icons are displayed in the row of the title.
    But I have found this thread in this issue:
    https://github.com/xamarin/Xamarin.Forms/issues/2798

Sign In or Register to comment.