Where can I find ToolbarPlacement attribute of Tab

2019-08-27 03:00发布

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.

enter image description here

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

1条回答
2楼-- · 2019-08-27 03:30

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"
查看更多
登录 后发表回答