【发布时间】:2019-08-08 20:08:24
【问题描述】:
我想在TabbedPage 之前添加页面/视图,我该怎么做?
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:TestProject.TabbedPages"
x:Class="TestProject.ItemPage"
Title = "Home Page">
<TabbedPage.Children>
<views:AprovedLeaves Title="Approved leaves"/>
<views:PendingLeaves Title="Pending leaves"/>
<views:DeniedLeaves Title="Denied leaves"/>
</TabbedPage.Children>
</TabbedPage>
上面的代码显示这样的输出
但我需要在制表符之前留出一些空间。像这样
【问题讨论】:
-
我不明白这里是什么意思,当您说要在 TabbedPage 前面添加页面/视图时!
-
我需要一些控件显示在标签之前,然后我需要标签页。但截至目前,我的标签显示在顶部。我要他们下来。
-
任何 XF“页面”类型都旨在填满整个屏幕。您可以通过使用分段控件而不是选项卡来实现接近您想要的效果
标签: xaml xamarin xamarin.forms tabbedpage