toptabbedpage-xamarin-forms
toptabbedpage-xamarin-forms copied to clipboard
ToolbarItems' position is changing when we are switching tabs
Hi,
I have an issue similar to #26 .
I am using your control to display two ContentPages and I added two ToolbarItems to it. On iOS, when I am switching the tabs with a slide, the ToolbarItems are changing their position between each other. Then, if I am switching the tabs by tapping, the ToolbarItems are taking their original position.
I know that @Eldin66 made the slide optional, but if it's possible I would like to keep it. Could you fix this issue ?
Thank you in advance for your response and your time ! Best regards,
hi @tuyen-vuduc ,
Any help ? :)
Best regards,
Hi @toussam
I have an same issue , Did you solve it.
Best regards,
Hi @fengchao1000 :)
It's been almost two years since I opened this issue therefore I don't remember if I fixed it. 😅
If you are using the last release and still got the problem, I would advice you to import or fork the project and fix it yourself. That or using another plugin. 😉
Best regards,
Hi @toussam
Thank you for your reply. I fixed the issue, Modify the code as follows:
//navigationItem.SetRightBarButtonItems(toolbarItems.Select(x => x.ToUIBarButtonItem()).ToArray(), false); navigationItem.SetRightBarButtonItems(toolbarItems.Select(x => x.ToUIBarButtonItem()).Reverse().ToArray(), false);
in TopTabbedRendererSelection.cs
Best regards,