【问题标题】:Template 10 hamburger menu detail page disappears after resume模板 10 汉堡菜单详细页面恢复后消失
【发布时间】:2017-02-06 19:47:20
【问题描述】:

Start app [按主页键]

press "all apps" on home screen and the icon for my app

现在我只看到汉堡图标。这是我的挂起和恢复功能。

【问题讨论】:

  • 你还在发布更多代码,对吧?
  • 我们肯定需要更多的信息.​​..
  • 如果我在 Visual Studio 2015 sp3 中选择新项目模板 10(汉堡包),我会得到完全相同的行为。为arm处理器构建。通过右键单击项目文件夹选择存储/创建应用程序包创建 appx(不是 appx bundel)。将其复制到我在 Honeywell gt50 设备上的下载文件夹中。安装依赖项和appx。 1. 启动应用程序,查看文本框标签“要传递的参数”值 Gas。 2. 在设备上单击 Windows 按钮(主页)。 3 选择“所有应用程序->”并再次单击我的 template10App。 4 现在我只看到左上角的汉堡菜单。
  • 我可以通过调试设备重新创建它。该应用程序安装在霍尼韦尔 gt50 上。现在,如果我按 Windows 按钮然后按“所有应用程序->”单击图标重新启动它,它就可以工作了。即使使用生命周期事件(暂停和恢复)。现在结束调试会话。转到设备启动应用程序,然后单击 windows 按钮,然后转到“所有应用程序->”并再次单击 template10app 图标。现在你只看到汉堡菜单了。
  • 将这些步骤添加到问题中,cmets 不计算在内。而且更难阅读。

标签: uwp template10


【解决方案1】:

由 Template10 团队解决。 dg2k。 一切皆好。 只需将公共覆盖 UIElement CreateRootElement(IActivatedEventArgs e) (App.xaml.cs) 中的以下行的 ExistingContent.Exclude 更改为 ExistingContent.Include。

public override UIElement CreateRootElement(IActivatedEventArgs e)
{
    ...

    var navService = NavigationServiceFactory(BackButton.Attach, ExistingContent.Include);

    ...
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-09
    • 1970-01-01
    • 1970-01-01
    • 2018-04-15
    • 1970-01-01
    • 1970-01-01
    • 2017-11-30
    相关资源
    最近更新 更多