我创建了一个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!如果我单击"status“,什么都不会发生,但是当我单击之后的其他任何内容(”映射“或”配置文件“)时,就会显示"status”。
我没有定制的呈现器,是否需要一个iOS才能使TabbedPage按照预期的方式运行呢?
我在这里放了一个非常小的项目,它显示了问题:https://github.com/RandomStuffAndCode/PrismApp
发布于 2017-09-28 00:00:07
这只存在于windows上用于visual的远程模拟器中。在mac上使用“本机”模拟器并不显示这种行为。关闭此问题是因为错误在工具中,而不是Xamarin.Forms框架中。
https://stackoverflow.com/questions/46381075
复制相似问题