Windows phone 8.1 通用Windows Phone底部AppBar在恢复时消失

Windows phone 8.1 通用Windows Phone底部AppBar在恢复时消失,windows-phone-8.1,win-universal-app,Windows Phone 8.1,Win Universal App,在emulator或手机中运行我的应用程序时,应用程序栏仅显示应用程序第一次运行的时间。如果我关闭应用程序并返回,应用程序栏就会消失。重新安装或重置手机可使其恢复一次运行。应用程序栏在windows中运行良好。我还没有实现任何挂起/恢复事件代码。下面是应用程序条形码的示例 <Page.BottomAppBar> <CommandBar> <CommandBar.SecondaryCommands> <App

在emulator或手机中运行我的应用程序时,应用程序栏仅显示应用程序第一次运行的时间。如果我关闭应用程序并返回,应用程序栏就会消失。重新安装或重置手机可使其恢复一次运行。应用程序栏在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>

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

好,请记住检查您的最佳答案