积极答复者
调试挂起状态时,出现异常

问题
答案
-
Hi,
这个你需要手动的进行序列化。你可以参考这个帖子的做法,[DataContract]代表类型对象可以被传送,还需要设置[DataMember]:
Hope this helps
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年8月9日 4:59
全部回复
-
Hi,
这个你需要手动的进行序列化。你可以参考这个帖子的做法,[DataContract]代表类型对象可以被传送,还需要设置[DataMember]:
Hope this helps
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Aaron XueModerator 2012年8月9日 4:59
-
因为传递一个Object参数即使很复杂,但是另一个页面也能够接到,问题只是在存储状态的时候出现。因此不能将传递的参数设置为String类型。
Frame.GetNavigationState只能够序列化 numbers, characters, strings, guids and boolean。其他的可能需要你自己手动的序列化。而且我查了一下没有发现不能够序列化的类,所以这个步骤你自己做就可以了也不是很麻烦。至于为什么不自动做可能是有设计上的考虑,这个问题讨论的很多。
Aaron Xue [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.