0

I have multiple settings on one page in my project that I need to push to another page.

There are some vars, guess I could make some get variables on the navigation url, but is there a session or some kind I can use to temporary store the variables?

Jason94
  • 13,320
  • 37
  • 106
  • 184
  • possible duplicate of [pass data from one view to another in windows phone](http://stackoverflow.com/questions/14349228/pass-data-from-one-view-to-another-in-windows-phone) – ctacke Apr 30 '13 at 18:04
  • or better yet, http://stackoverflow.com/questions/4953491/passing-data-from-page-to-page – ctacke Apr 30 '13 at 18:05

1 Answers1

1

The best way to have session like treatment is isolatedstroragesettings.

IsolatedStorageSettings settingss = IsolatedStorageSettings.ApplicationSettings;

To store and retrive values you need to do the following:

private void SaveValue()
    {
        settingss["userid"] = "IMMNK";
    }

    private string ReturnValue()
    {
        string value="";
        if (settingss.Contains("userid"))
            settingss.TryGetValue("userid", out value);
        return value;
    }
Mani
  • 1,364
  • 14
  • 33