isolatedstorage

Binding image in Isolated Storage

狂风中的少年 提交于 2019-11-27 18:30:03
问题 Hey. I have a list of items that the user can search. The search results are displayed in a listbox. Each animal object has a path to an image in Isolated Storage. What's the quickest way to bind my Image control inside the listboxitem to the image in the isolated storage? Examples I've seen tend to display images from the internet rather than Isolated Storage. If I have around 10 images, it seems to take up all the memory and crash. thanks EDIT: I'm using this in my BitmapConverter class

StorageFile Async usage in a NON Metro application

我的未来我决定 提交于 2019-11-27 18:25:40
问题 I am trying to create an instance of StorageFile in my class library... var localFolder = ApplicationData.Current.LocalFolder; StorageFile destinationFile = await localFolder.CreateFileAsync(destination, CreationCollisionOption.GenerateUniqueName); VS11 is not building say: 'await' requires that the type 'Windows.Foundation.IAsyncOperation' have a suitable GetAwaiter method. Are you missing a using directive for 'System'? obviously I am using .net 4.5 as target and I am referencing Windows

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

情到浓时终转凉″ 提交于 2019-11-27 05:24:03
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. benesch 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 some other method of persisting data. [Support for HTML5-style local storage is still in beta in

ClickOnce and IsolatedStorage

纵饮孤独 提交于 2019-11-27 04:52:49
The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each version. Is there a way to freeze the isolation for the whole application instead of the version? You need to use application scoped, rather than domain scoped, isolated storage. This can be done by using one of IsolatedStorageFileStream's overloaded constructors. Example: using

Can I get a path for a IsolatedStorage file and read it from external applications?

人走茶凉 提交于 2019-11-27 01:41:27
问题 I want to write a file where an external application can read it, but I want also some of the IsolatedStorage advantages, basically insurance against unexpected exceptions. Can I have it? 回答1: You can retrieve the path of an isolated storage file on disk by accessing a private field of the IsolatedStorageFileStream class, by using reflection. Here's an example: // Create a file in isolated storage. IsolatedStorageFile store = IsolatedStorageFile.GetStore(IsolatedStorageScope.User |

ClickOnce and IsolatedStorage

≡放荡痞女 提交于 2019-11-26 11:22:31
问题 The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each version. Is there a way to freeze the isolation for the whole application instead of the version? 回答1: You need to use application scoped, rather than domain scoped, isolated storage