简体   繁体   中英

I want to have a page that collects information from the user, and i want to take that information and use it on other pages and classes

是否有必要将其存储到文件和隔离存储中,或者有其他方法可以做到这一点?

No, you do not have to. You can place common data in your 'application', which will be accessible everywhere via the Application.Current property. Alternatively, if you use the MVVM pattern, you can set the DataContext of the RootFrame , this will ensure that all pages shares the same data context.

See this blog post I wrote for a nice simple MVVM WP7 example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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