Application Settings

Saving objects in persistent state is such a common task that the isolated storage API includes an IDictionary<string, object> class named IsolateStorageSettings that is automatically persisted to isolated storage when your app is closed or tombstoned. IsolateStorageSettings is a convenient way to store global application state (see Figure 28.2).

Image

FIGURE 28.2 An app’s IsolatedStorageSettings instance is retrieved using the IsolatedStorageSettings.ApplicationSettings property.

IsolateStorageSettings is a singleton, accessible via the IsolatedStorageSettings.ApplicationSettings property. The ApplicationSettings property can ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.