打开省电模式时,Xamarin 重置 MasterDetailPage/FlyoutPage 的 Detail 属性

发布于 2025-01-16 11:43:41 字数 359 浏览 3 评论 0原文

我的 Xamarin 应用程序有一个奇怪的问题。当我打开省电模式时,应用程序会重置 MasterDetailPage 的详细信息属性,从而导航回登录屏幕。我真的无法调试它。 我的导航的工作方式如下:我创建一个新的 NavigationPage 并将 MasterDetailPage 的 Detail 属性设置为新的 NavigationPage。

有谁知道为什么会发生这种情况?

//使用 FlyoutPage 而不是 MasterDetailPage 进行编辑不起作用

//Edit2 显然这只发生在我的 Zebra TC26 上。此外,它不仅将 Detail 属性重置为其默认值,还将整个应用程序中除静态变量/属性之外的所有变量/属性重置为其默认值...

I have a weird problem with my Xamarin App. When I turn on the power saving mode the App resets the Detail Property of my MasterDetailPage and thus navigate back to the Loginscreen. I cant really debug that.
My Navigation works like that: I create a new NavigationPage and set the Detail Property of my MasterDetailPage to the new NavigationPage.

Does anyone know why this happens?

//Edit using FlyoutPage instead of MasterDetailPage doesn't work

//Edit2 apparently that only happens on my Zebra TC26. Also it not only resets the Detail property to its default value it resets ALL variables/properties in my entire app except static ones to its default value...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文