isolatedstorage

windows phone navigation immediately after loading page

狂风中的少年 提交于 2019-12-19 12:04:33
问题 I have 2 pages.(MainPage.xaml,second.xaml) MainPage.xaml is the Login page. In this page I send login and password, and receive result. I save them(result) in Isolate Storage and navigate to the second.xaml page; When i start this application in the next time, i extract data from Isolate Storage and I want to navigate the second.xaml immidiately, but i don't know how I try write public MainPage() { InitializeComponent(); //function for Isolate storage InitializeSettings(); NavigationService

What embedded database with Isolated Storage support can you recommend?

两盒软妹~` 提交于 2019-12-19 04:09:21
问题 I'm looking for embedded database engine supporting isolating storage. Currently I'm aware of VistaDB. What else you can recommend? Requirements are pretty simple: xcopy deployment support for isolated storage preferably free Note that you don't know exact path to the file when using IS. 回答1: VistaDB seems to have support for isolated storage. I've been using it for nearly a year now and am very happy with it all round. It's not free but its pricing starts at $60USD for version 4 (very soon

Rename File in IsolatedStorage

 ̄綄美尐妖づ 提交于 2019-12-19 02:05:08
问题 I need to rename a file in the IsolatedStorage. How can I do that? 回答1: There doesn't appear to anyway in native C# to do it (there might be in native Win32, but I don't know). What you could do is open the existing file and copy it to a new file and delete the old one. It would be slow compared to a move, but it might be only way. var oldName = "file.old"; var newName = "file.new"; using (var store = IsolatedStorageFile.GetUserStoreForApplication()) using (var readStream = new

Download, save( locally ) and display PDF from a link

邮差的信 提交于 2019-12-18 03:00:54
问题 I am developing Windows phone 8 application. In my application, i have to display PDF file in offline( without net connection ) mode, within application. For that i have to do the following, Download PDF file from a link( URL ) provided by server side. Save the downloaded PDF file in local storage. Open and display PDF file from local storage. On searching, i found suggestions to use ComponentOne Studio's toolset called 'Studio for Windows Phone'. Unfortunately it is not free. Is there any

Deleting isolated storage directories in windows phone 7

怎甘沉沦 提交于 2019-12-17 21:24:52
问题 I am trying to delete the folder created in isolated storage. But i get a error of "path must be a valid file name" My created file name is "a07292011//time.Schedule" . So now i want to delete the folder and my code is: myStore.DeleteDirectory(selectedFolderName1 + "\\"); Where selectedFolderName1 = a07292011 回答1: /// <summary> /// Method for deleting an isolated storage directory /// </summary> /// <param name="directoryName">Name of a directory to be deleted</param> public static void

Is there a “first run” flag in WP7

余生颓废 提交于 2019-12-17 16:48:24
问题 I would like to know if there is a "first run" flag or similar in WP7. My app takes some stuff out of isolated storage so I would like to determine if this is necessary first time. I am currently using an if to check if the named storage object exists but this means I can't handle any memory loss errors in the way I would like. 回答1: I don't think there is a built in feature for this ... but I know what you mean :-) I implemented "first run" myself using iso storage in the open source khan

Operation not permitted on IsolatedStorageFileStream. error

那年仲夏 提交于 2019-12-17 16:45:30
问题 I have a problem with isolated storage. This is my code: List<Notes> data = new List<Notes>(); using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isoStream = isoStore.OpenFile("Notes.xml", FileMode.OpenOrCreate)) { XmlSerializer serializer = new XmlSerializer(typeof(List<Notes>)); data = (List<Notes>)serializer.Deserialize(isoStream); } } data.Add(new Notes() { Note = "hai", DT = "Friday" }); return data; the mistake :

local storage in IE9 fails when the website is accessed directly from the file system

孤人 提交于 2019-12-17 07:42:36
问题 Both statements window['localStorage'] and window.localStorage are undefined when accessing the url "file:///C:/index.html" Is localStorage off limits when running websites on the filesystem? PS. I'm running the website on a Windows 7 phone hosting the website in isolatedStorage. 回答1: Yeah, IE9 doesn't support localStorage for local files. Not in any official documentation that I can find, but the same issue is described in this blog. You'll have to either host the website externally, or find

How to read an audio file from IsolatedStorage?

主宰稳场 提交于 2019-12-14 04:09:01
问题 I have an audio file stored in IsolatedStorage .. I want to access it by calling a method of another class: using (IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream fileStream = isolatedStorage.OpenFile(filePath, FileMode.Open, FileAccess.Read)) { return fileStream; } } now when I call that method this way: var fileStream = Musics.TryGetMusic("DaDaDa.mp3"); musicMediaElement.SetSource(fileStream); musicMediaElement.Play(

How to read individual lines of a text from the isolated storage?

北战南征 提交于 2019-12-14 03:34:47
问题 (EDITED) My codes doesn't read the text file. Apparent;y, when I want to read the file, they gave me a "File Not Found!" message box which it is in the if else loop, indicating that the code in the if loop doesn't work. private void OnSaveFile() { if (!string.IsNullOrEmpty(this.FileName)) { using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { if (store.FileExists(FileName)) store.DeleteFile(FileName); using (var fileStream = store.OpenFile(FileName, FileMode.Create,