Where can I find ToolbarPlacement attribute of TabbedPage?

拥有回忆 提交于 2019-12-11 13:36:06

问题


I'm trying to locate the Tabbing bar in the bottom of the screen in android and I already did in the C# code behind but I'm just wondering how to do that in the .xaml code?

I've added the Xamarin.Forms.PlatformConfiguration.AndroidSpecific namespace but can't find the ToolbarPlacement attribute to set it to "Bottom" like is shown in the image below.

So is there a way to set it in the xaml code?


回答1:


From what I see your Xamarin.Forms package is not up to date because of which you are unable to use that feature. Just update the Xamarin.Forms package to 3+ and I think that should solve your issue.

Feel free to revert in case of queries

Update:

Try adding the following lines manually and try if it works:

xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
android:TabbedPage.ToolbarPlacement="Bottom"


来源:https://stackoverflow.com/questions/53542231/where-can-i-find-toolbarplacement-attribute-of-tabbedpage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!