简体   繁体   中英

Where to store string data in windows phone8

There're some string data I want to display in the UI, but I don't want to write them in xaml page, where can I store them and load them dynamically when the page display? Storing them in app.xaml is a correct way?

You can save app level static string data as Embedded Resources.

See Using String Resources

This would also cater future possible need of multilanguage support

You can used like AppResources.resx.
It will store the string data.

You will used it like:

textblock.text= AppResources.xxxxxxx

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