【发布时间】: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