[英]Phone App doesn't stay in navigation stack on phone, but does when connected to VS via USB
My Phone App doesn't stay in the navigation stack on phone, but does when connected to Visual Studio via USB. 我的手机应用程序不会保留在手机的导航堆栈中,但通过USB连接到Visual Studio时会保留。 When I run it 'to Device' from Visual Studio, I can go to another app and return to my app (which is still in the state I left it) - but when I run it on the phone by itself it closes when I go to another app and come back (via back button). 当我从Visual Studio“将其运行到设备”上时,我可以转到另一个应用程序并返回到我的应用程序(它仍处于离开状态)–但是当我在手机上单独运行它时,它会在我运行时关闭到另一个应用,然后回来(通过“后退”按钮)。 I have a Lumia 928. (Universal app 8.1) Anybody else run across this behavior? 我有一台Lumia928。(通用应用程序8.1)还有其他人遇到这种行为吗? Any thoughts on what I might be missing. 关于我可能会丢失的任何想法。 It navigates fine forward and backwards within my app, and when run as a Device from VS, but not alone. 当在VS中作为设备运行时,它可以在我的应用程序中前后很好地导航,但并不孤单。
I was trying to serialize an object that serialization doesn't support. 我正在尝试序列化序列化不支持的对象。 I trapped for that error and now the app behaves properly. 我被困为该错误,现在该应用程序运行正常。
This link helped https://social.msdn.microsoft.com/Forums/en-US/3e24c556-3758-40d0-bd03-55e193538340/getnavigationstate-doesnt-support-serialization-of-a-parameter-type-which-was-passed-to?forum=winappswithcsharp 此链接帮助https://social.msdn.microsoft.com/Forums/zh-CN/3e24c556-3758-40d0-bd03-55e193538340/getnavigationstate-doesnt-support-serialization-of-a-parameter-type-which-was -通过?forum = winappswithcsharp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.