我创建了一个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:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
prism:ViewModelLocator.AutowireViewModel="True"
x:Class="MyApp.Views.MainPage"
xmlns:local="clr-namespace:MyApp.Views;assembly=MyApp"
xmlns:resources="clr-namespace:MyApp.Common"
Title="{resources:Translate MainPage_Title}">
<TabbedPage.Children>
<local:MapsPage Icon="tabicon_mapspage.png" />
<local:ProfilePage Icon="tabicon_profilepage.png" />
<local:StatusPage Icon="tabicon_statuspage.png" />
</TabbedPage.Children>
</TabbedPage>
在Android上,选项卡的工作原理。但是,在iOS模拟器上,当前活动选项卡总是落后1个!如果我单击"状态",什么也不会发生,但是当我在此之后单击其他任何内容时("映射"或"配置文件"),则显示"状态"。
我没有自定义渲染器,我是否需要一个iOS才能使TabBedPage按照预期的方式行为?
我在这里放了一个非常最小的项目,其中显示了一个问题:https://github.com/randomstuffandcode/prismapp
这仅在Windows上的Visual Studio的远程模拟器中存在。在MAC上使用"本机"模拟器不会表现出这种行为。在工具中关闭这个问题,而不是xamarin.forms框架