Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4970
How to use one file in IsolatedStorage for more than one control persistent data?
posted

I want to persistent user control data for user experience. Following sample code, a temp file can be used for this purpose like:

 using (IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication())
            {
                if (iso.FileExists(fileName))
                    iso.DeleteFile(fileName);

                iso.IncreaseQuotaTo(iso.Quota + memoryStream.Length);
                using (IsolatedStorageFileStream stream = new IsolatedStorageFileStream(fileName, FileMode.OpenOrCreate, iso))
                {
                    stream.Write(memoryStream.ToArray(), 0, (int)memoryStream.Length);
                }
            }

in this way, each control should have its own temp file in IsolatedStorage. Is it possible to have only one temp file for different control in SL app? sample code to save and populate it please.

Thanks.