这应该是一个简单的...我正在尝试在Xamarin Forms中制作一个非常简单的TabbedPage . 以下是详细信息:
-
在Apple与Sierra上使用Xamarin Studio Community 6.3(10.12.3)
-
iOS预览正在显示标签
-
Android预览是 not 显示选项卡 - 仅显示第一个子页面
-
无论是使用XAML还是代码都会发生同样的事情
-
这是一个简单的新Xamarin Forms解决方案,来自最初的样板代码,没有添加任何其他内容 .
XAML:
<?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:local="clr-namespace:MyApp" x:Class="MyApp.MyAppPage">
<TabbedPage.Children>
<ContentPage Title="#1"><Label>Testing 1</Label></ContentPage>
<ContentPage Title="#2"><Label>Testing 1234</Label></ContentPage>
</TabbedPage.Children>
</TabbedPage>
那_1154591已尝试在 TabbedPage.Children
内使用ContentPage,NavigationPage,StackView等 . 结果相同 . 预览适用于iOS预览,但不适用于Android . 我错过了什么简单的事情?