【问题标题】:Universal Windows Phone BottomAppBar disappears on resume通用 Windows Phone BottomAppBar 在恢复时消失
【发布时间】:2015-02-27 23:00:34
【问题描述】:

在模拟器或手机中运行我的应用程序时,应用程序栏仅显示应用程序第一次运行的时间。如果我关闭应用程序并返回,应用程序栏就消失了。重新安装或重置手机会将其重新运行一次。应用栏在 Windows 中运行良好。我还没有实现任何暂停/恢复事件代码。以下是应用条形码的示例。

<Page.BottomAppBar>
    <CommandBar>
        <CommandBar.SecondaryCommands>
            <AppBarButton x:Name="SettingsButton" Icon="Setting" Label="Settings" />
            <AppBarButton x:Name="Help" Icon="Help" Label="Help" />
            <AppBarButton x:Name="Forms" Icon="Bullets" Label="Forms" IsEnabled="False" />
            <AppBarButton x:Name="ManageTrip" Icon="Manage" Label="Manage Trip" />
        </CommandBar.SecondaryCommands>
        <AppBarButton x:Name="Sync" Icon="Sync" Label="Sync" />
        <AppBarButton x:Name="FilterSettings" Icon="Filter" Label="Filter" />
        <AppBarButton x:Name="AddTransaction" Icon="Add" Label="Add" />
        <AppBarButton x:Name="EditTransaction" Icon="OpenFile" Label="Open" />
    </CommandBar>
</Page.BottomAppBar>

【问题讨论】:

    标签: windows-phone-8.1 win-universal-app


    【解决方案1】:

    AppBar 无法加载的原因是,如果我已经登录,我正在导航到 OnViewLoaded 事件内的另一个页面。如果我删除此重定向,AppBar 每次都会加载。

    【讨论】:

    • 好,记得勾选你的最佳答案
    猜你喜欢
    • 2020-09-18
    • 2015-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 1970-01-01
    相关资源
    最近更新 更多