首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xamarin.Forms TabbedPage活动选项卡1在iOS上的选择后面

Xamarin.Forms TabbedPage活动选项卡1在iOS上的选择后面
EN

Stack Overflow用户
提问于 2017-09-23 15:14:59
回答 1查看 321关注 0票数 0

我创建了一个TabbedPage

代码语言:javascript
复制
<?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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-28 00:00:07

这只存在于windows上用于visual的远程模拟器中。在mac上使用“本机”模拟器并不显示这种行为。关闭此问题是因为错误在工具中,而不是Xamarin.Forms框架中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46381075

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档