Mobile Line Of Business

Richard Jones (MVP)

  Home  |   Contact  |   Syndication    |   Login
  202 Posts | 0 Stories | 36 Comments | 0 Trackbacks

News

Welcome to the Mobile Line Of Business Blog

Tag Cloud


Archives

Post Categories

About

Mark Arteaga – fellow MVP just helped me with this,  thought I’d share.

image

Windows Phone 7 SilverLight supports persistent storage, which is a great way of saving settings betweens runs of your application.

However I couldn’t get it to work.

If you do this to create a persistant storage instance -

   private IsolatedStorageSettings userSettings =
IsolatedStorageSettings.ApplicationSettings;

To retrieve settings do the following -

string xx = userSettings[“SomeValue”].ToString();

 

Hiowever the bit that got me was how to save settings, you have todo this -

userSettings.Add("Hello", DateTime.Now.ToShortTimeString());
          userSettings.Save(); // <- This is the bit that got me

 

Hope this helps others

posted on Friday, May 7, 2010 8:54 AM