打开省电模式时,Xamarin 重置 MasterDetailPage/FlyoutPage 的 Detail 属性
我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论