简体   繁体   English

Xamarin.Forms TabbedPage活动选项卡1在iOS上处于选中状态

[英]Xamarin.Forms TabbedPage active tab 1 behind selection on iOS

I have created a TabbedPage : 我创建了一个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>

On Android the tabs works as you would expect. 在Android上,这些选项卡可以按预期工作。 However, on the iOS simulator, the currently active tab is always 1 behind! 但是,在iOS模拟器上,当前活动的标签始终落后1! If i click "status" nothing happens, but when i click anything else after that (either "maps" or "profile") THEN "status" is shown. 如果我单击“状态”,则没有任何反应,但是当我单击此后的其他任何内容(“地图”或“配置文件”)时,将显示“状态”。

I have no custom renderers, do i need one for iOS to make TabbedPage behave as expected? 我没有自定义渲染器,我是否需要一个iOS渲染器才能使TabbedPage发挥预期的作用?

I have put a very minimal project up here which shows the issue: https://github.com/RandomStuffAndCode/PrismApp 我在这里放置了一个非常小的项目来显示问题: https : //github.com/RandomStuffAndCode/PrismApp

This is only present in the remote simulator for visual studio on windows. 这仅在Windows上用于Visual Studio的远程模拟器中存在。 Using the "native" simulator on mac does not exhibit this behavior. 在Mac上使用“本机”模拟器不会出现此现象。 Closing this question as the bug is in tooling, not the Xamarin.Forms framework 由于工具(而非Xamarin.Forms框架)中的错误而结束了此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM