This question is locked. New answers and comments are not allowed.
I'm using the Storage classes, (Local and Temporary folders). These are my methods:
It works fine, but once I add RadMetro controls as a reference, the readlocal method starts to throw an exception... (I don't even have to create any rad metro controls, adding the reference will crash the app)
I believe it clears the data from local storage or something, can you please help?
Thanks,
public static async Task<string> ReadLocal(string key) { String content = string.Empty; try { StorageFile sampleFile = await ApplicationData.Current.TemporaryFolder.GetFileAsync(key); content = await FileIO.ReadTextAsync(sampleFile); // Data is contained in timestamp } catch { // Timestamp not found } return content; } public static async Task WriteLocal(string key, string content) { StorageFile sampleFile = await ApplicationData.Current.TemporaryFolder.CreateFileAsync(key, CreationCollisionOption.ReplaceExisting); await FileIO.WriteTextAsync(sampleFile, content); return; }It works fine, but once I add RadMetro controls as a reference, the readlocal method starts to throw an exception... (I don't even have to create any rad metro controls, adding the reference will crash the app)
I believe it clears the data from local storage or something, can you please help?
Thanks,