简体   繁体   English

WP8如何与其他屏幕中的控件进行交互

[英]WP8 how to interact with controls in other screens

how can I interact with controls/objects, ie changing a property or firing a method, which are located in another screen/class using C# for Windows Phone 8? 如何使用Windows Phone 8的C#与控件/对象进行交互(即更改属性或触发方法),这些控件/对象位于另一个屏幕/类中? Thanks in advance! 提前致谢!

Sorry for posting this as an answer I don't have enough reputation for this. 很抱歉将其发布为答案,我对此没有足够的声誉。 What you can do is use the PhoneApplicationService.State that is a dictionnary where you can store any object. 您可以做的是使用PhoneApplicationService.State,它是一个字典,您可以在其中存储任何对象。 The data remains here until you leave the application. 数据将保留在此处,直到您退出应用程序为止。

Here is the documentation of the dictionary 这是字典的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM