isolatedstorage

FIPS-compliant Isolated Storage in WinXP?

给你一囗甜甜゛ 提交于 2019-12-24 13:26:35
问题 I've read (but not tested) that Isolated Storage uses Sha1Managed, which is not FIPS-compliant? Is that accurate, and can anything be done to use Isolated Storage on a FIPS-compliant WinXP SP2 box? I've seen mention of "Isolated Storage" within both the ClickOnce and Silverlight spaces. I'd appreciate an informed answer regarding either (or both!). 回答1: Yes, Isolated Storage does use SHA1Managed internally, which is not FIPS compliant. You will get an exception thrown from within the

using async await on Windows Phone 7

寵の児 提交于 2019-12-24 10:57:23
问题 Write the code which asynchronus load BitmapImage. public async void AsyncLoadPhotoNotesFromIsolatedStorage() { IsolatedStorageSettings appStorageSettings = IsolatedStorageSettings.ApplicationSettings; if (appStorageSettings.Count > 0) { var loadedPhotoNotes = new ObservableCollection<PhotoNote>(); foreach (Object obj in appStorageSettings.Values) { var tempPhotoNote = (PhotoNote) obj; BitmapImage bitmapImage = null; Stream imageStream = await LoadImageAsync(tempPhotoNote.Id); if (imageStream

How to load image from isolated storage for secondary tile

走远了吗. 提交于 2019-12-24 07:53:19
问题 I am attempting to populate a secondary tile background with an image saved from the PhotoChooserTask, but for some reason I cannot accomplish this. I have referenced a lot of sites but I have not found the proper implementation. All I do is call PhotoChooserTask, and then on the completed event I save the resulting image to isolated storage to be loaded later. This has worked with a HubTile in my application, but for some reason I cannot append the image to a secondary tile. So far what I

Playing media file from Isolated Storage in windows phone?

戏子无情 提交于 2019-12-24 03:35:38
问题 I need to play music file from the isolated storage. i did by this way, MediaElement media = new MediaElement(); using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile(FileName, FileMode.Open, FileAccess.Read)) { media.SetSource(fileStream); media.Play(); } } I can't play the music file. When i created media element Xaml and set source that element this works fine. The problem

How to share one IsolatedStorage for two Windows Forms Applications?

和自甴很熟 提交于 2019-12-23 18:39:50
问题 I have two Windows Forms applications and library in one solution. Library class can create new folders and files in IsolatedStorage and list all files and folders in IsolatedStorage. First application uses library class to create new folders/files I want the second one to list folders created by first app. How can i make them use the same isolated storage? 回答1: Use IsolatedStorageFile.GetUserStoreForAssembly to create isolated storage from the library. Details here You could use the below

Problem opening JPEG from Isolated Storage on Windows Phone 7

荒凉一梦 提交于 2019-12-23 15:28:12
问题 Scenario App opens Checks to see if image for background exists in Isolated Storage If not, downloads from web, and saves it to Isolated Storage Loads the image from Isolated Storage and sets it as Background on a Panorama-control Problem The image is not loaded in GUI.. When I'm inspecting the byte-array received from isolated storage, it contains the same amount of bytes as was written initially, but the image doesn't show up. Here's some test-code I'm currently using to try and figure out

How to set and save background image in windows phone?

耗尽温柔 提交于 2019-12-23 05:32:31
问题 I'm using this code, so user can sets custom background image for the application: private void Button_Click(object sender, RoutedEventArgs e) { PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += new EventHandler<PhotoResult>(photoChooserTask_Completed); photoChooserTask.Show(); } void photoChooserTask_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { System.Windows.Media.Imaging.BitmapImage bmp = new System.Windows.Media

Why is isolated storage not persisting in my WP7 application?

戏子无情 提交于 2019-12-23 03:22:17
问题 I am using IsolatedStorageSettings.ApplicationSettings for my application. All code associated with Isolated storage occurs in my Application_Launching, Application_Activated, Application_Closing, and Application_Deactivated methods as follows: public IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; private void Application_Launching(object sender, LaunchingEventArgs e) { if (settings.Contains("myObjList")) { App.ObjList = (ObservableCollection<myObj>)settings[

Silverlight Event Log in Isolated Storage

≡放荡痞女 提交于 2019-12-23 03:22:07
问题 Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? 回答1: I heard clog from codeplex is pretty good although it targets wcf, i read on codeproject about about a log4net approach that works for silverlight, although both of these log 2 wcf services, im sure with a bit of tweaking

Silverlight Event Log in Isolated Storage

偶尔善良 提交于 2019-12-23 03:22:02
问题 Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? 回答1: I heard clog from codeplex is pretty good although it targets wcf, i read on codeproject about about a log4net approach that works for silverlight, although both of these log 2 wcf services, im sure with a bit of tweaking