简体   繁体   English

Phone App不会保留在手机的导航堆栈中,但通过USB连接到VS时会保留

[英]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.

相关问题 通过连接了USB的电话发送短信 - Send SMS via phone connected with USB 在Windows Phone应用程序的导航堆栈中添加页面 - Add page in Navigation stack in Windows Phone app 当手机未连接到USB时,LiveConnectClient.BackgroundUploadAsync无效 - LiveConnectClient.BackgroundUploadAsync, is not working when phone not connected to usb 从通过USB电缆直接与Windows机器连接的移动电话访问IIS网站 - Accessing an IIS Website from a mobile phone that is connected via usb cable directly with the windows machine SplashScreenImage 未出现在 Windows Phone 应用程序中 - SplashScreenImage doesn't appear in Windows Phone app 通过USB通过电话访问PC上的数据 - access Data on PC by Phone via USB 如何将页面添加到导航堆栈?(Windows Phone) - How to add page into Navigation stack?( Windows Phone) Windows Phone App导航问题 - Windows Phone App navigation issues 当数据库似乎没有数据库时,为什么LINQ to SQL在Windows Phone上报告冲突? - Why does LINQ to SQL report a conflict on Windows Phone, when the database doesn't appear to have one? Xamarin 应用程序在尝试将 Android 手机倒置时保持横向? - Xamarin app stay in landscape orientation when trying to put the Android phone upside down?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM