[英]Multiple Content Pages inside one Tabbed Page
我在不使用 TabbedPage 模板的情况下从头开始制作我的应用程序,而且我真的不知道如何将多个内容页面放在一个 TabbedPage 中。 现在我的标签式导航 XAML 看起来像这样:
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:parkingapp="clr-namespace:ParkingApp.Views"
x:Class="ParkingApp.Tabbed"
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
android:TabbedPage.ToolbarPlacement="Bottom">
<parkingapp:Profile Title="Profile"></parkingapp:Profile>
<parkingapp:MainPage Title="Parking" ></parkingapp:MainPage>
这工作正常,我可以导航到个人资料和停车,但是在停车内我有按钮导航到另一个内容页面,一旦我进入另一个内容页面,我的选项卡式导航栏没有显示,我希望它全部显示我的内容页面。
如果要在选项卡内导航,请将选项卡的内容放在NavigationPage
内。
<NavigationPage>
<x:Arguments>
<parkingapp:Profile Title="Profile" />
</x:Arguments>
<NavigationPage>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.