我正在关注本指南(https://15mgm15.ghost.io/2018/06/06/bottom-tabbed-page-for-xamarin-forms-android/),但我不知道如何添加我的页面已添加到项目中。
我需要在此处添加一些内容,以便应用了解要显示哪些页面:
<TabbedPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:bottom"
x:Class="bottom.MainPage">
<TabbedPage.Children>
<ContentPage Title="Page 1" Icon="death_star.png"/>
<ContentPage Title="Page 2" Icon="green_star.png"/>
<ContentPage Title="Page 3" Icon="star.png"/>
</TabbedPage.Children>
</TabbedPage>
现在,它只显示标签页,因为它不知道从哪些页面获取信息。