isolatedstorage

windows phone 7 - loading a big xml file

纵然是瞬间 提交于 2019-12-04 10:20:35
I am trying to load a xml file to my app and show it on a ListBox. The problem is that the xml file is about 5 MB, and it takes about 40 seconds on the phone to load. and when the phone locks the screen and returns back it takes another 40 seconds. I tried to use the isolatedstorage to store the data on it but it didn't improve performance. This is my code to load the data: XDocument loadedData = XDocument.Load("BigFile.xml"); var data = from query in loadedData.Descendants("w") orderby (string)query.Element("e") select new myClass { First = (string)query.Element("a"), Second = (string)query

Isolated storage location for windows phone 7?

梦想的初衷 提交于 2019-12-04 07:56:30
I'm building a windows phone 7 application using silverlight 4. I store my data in Isolated storage as outlined here . The program runs with no errors. My question is where I can see the file I have saved? Is it possible to find the file in the windows phone 7 emulator? The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory: # Copy data from IS to directory ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore" # Copy data from IS to directory ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory

Read and write list to IsolatedStorage in Windows Phone 8

扶醉桌前 提交于 2019-12-04 07:41:40
I'm trying to simply save a list of strings to isolated storage on windows phone 8. I have simply created a list and save it this way: IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; List<String> projectList = new List<String>(); projectList.add("yo"); settings.add("yo", projectList"); settings.Save(); How do i read this data from IsolatedStorage and put it into the same list once the app starts up again? I'm looking for a simple method - which i haven't found on the web, i haven't managed to implement any of the solutions i found on the web, as they use

how to save hyperlink button in isolated storage

大憨熊 提交于 2019-12-04 06:38:42
问题 I have a list of hyperlink button, created at runtime public void SaveBookmark() { Button objButton = new Button(); objButton.Content = "Delete"; objButton.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; objButton.Foreground = new SolidColorBrush((Colors.Black)); objButton.BorderBrush = new SolidColorBrush((Colors.Black)); HyperlinkButton objhyperlinkbtn = new HyperlinkButton(); objhyperlinkbtn.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; objhyperlinkbtn

A Cause for HRESULT 0X80131468 when accessing IsolatedStorageBackingStore

三世轮回 提交于 2019-12-04 03:48:19
问题 The scenario I am facing is that I have an ASP.NET web service (.NET 3.5) running on an W2k3 server which is using the CacheManager/IsolatedStorage store to store a persisted state variable. This configuration has been working fine for quite sometime until we changed the physical machine. Now whenver the code that accesses that value runs it throws an IsolatedStorageException (Posted below). As I understand it the user/assembly store is what is being accessed and the executing user is a

How can I save the settings in the IsolatedStorage while BackgroundAudioPlayer's instance is active?

ぃ、小莉子 提交于 2019-12-04 02:32:06
问题 I have Two projects in my Solution. Let's say Project A and Project B. Project A It's the main project and has settings. I have a check box to give user an option to "Repeat" track(s). This project can also access PROJECT B's public instances. Project B It's the BackgroundAudioAgent and has it's own settings. This project doesn't have access to PROJECT A settings. Therefore, in PROJECT A , I need to access the settings of PROJECT B and save it there. So that, when the "Repeat" is enabled, the

How get image from isolated storage

被刻印的时光 ゝ 提交于 2019-12-04 01:59:36
问题 I have this XAML <ListBox Margin="0,0,-12,0" ItemsSource="{Binding Items}" Name="list"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" Margin="0,0,0,17"> <!--Replace rectangle with image--> <Image Height="100" Width="100" Source="{Binding Img}" Margin="12,0,9,0"/> <StackPanel Width="311"> <TextBlock Text="{Binding Pos}"/> </StackPanel> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> In the Code: using (IsolatedStorageFile isoStore =

Read a file from Windows Phone 7

梦想与她 提交于 2019-12-04 01:35:01
问题 I have a folder called data/ in my project that contains txt files . I configured Build Action to resources to all files. I tried these different ways: method 1 var resource = Application.GetResourceStream(new Uri(fName, UriKind.Relative)); StreamReader streamReader = new StreamReader(resource.Stream); Debug.WriteLine(streamReader.ReadToEnd()); method 2 IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication(); string[] fileNames = myIsolatedStorage.GetFileNames

Where is .NET “Isolated Storage” stored?

谁都会走 提交于 2019-12-02 23:26:19
Where would the physical files be? It depends on the OS and whether or not roaming user profiles are enabled. For example, on XP, with non-roaming profiles, the location is <SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\IsolatedStorage On Vista with roaming profile storage, <SYSTEMDRIVE>\Users\<user>\AppData\Roaming\Microsoft\IsolatedStorage See an Introduction to Isolated Storage for more info. %LocalAppData%\IsolatedStorage / %AppData%\IsolatedStorage. I didn't find them under "Microsoft" System.Diagnostics.Process.Start( Environment.GetFolderPath

I'm not able to save to the isolated storage?

浪尽此生 提交于 2019-12-02 18:15:44
问题 I'm trying to save my model in isolated storage: var settings = IsolatedStorageSettings.ApplicationSettings; CurrentPlaceNowModel model = new CurrentPlaceNowModel(); settings.TryGetValue<CurrentPlaceNowModel>("model", out model); if (model == null) { MessageBox.Show("NULL"); settings.Add("model", new CurrentPlaceNowModel()); settings.Save(); } else MessageBox.Show("NOT NULL"); When I start the emu i ofcourse the "NULL", but why do I keep getting it if I close the app on the emu and start it