Best way to save/load data locally. WPF
-
Afternoon, I was wondering what people though the best way to save data locally, I dont want to export to txt files. When I was developing for Windows phone, I used isoloated storage, but ov this isnt available. Thanks.
-
Afternoon, I was wondering what people though the best way to save data locally, I dont want to export to txt files. When I was developing for Windows phone, I used isoloated storage, but ov this isnt available. Thanks.
Of course IsolatedStorage is available in WPF. If it isn't then there's some smoke and mirrors going on in our current codebase which uses it.
Forgive your enemies - it messes with their heads
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Afternoon, I was wondering what people though the best way to save data locally, I dont want to export to txt files. When I was developing for Windows phone, I used isoloated storage, but ov this isnt available. Thanks.
Just use the application settings. Thats what they are there for :). Unless its big data, then you shouldn't store it there. You didn't say what kind of data you want to store.
-
Afternoon, I was wondering what people though the best way to save data locally, I dont want to export to txt files. When I was developing for Windows phone, I used isoloated storage, but ov this isnt available. Thanks.
1. Create an object that describes your data 2. Serialize it as XML file 3. If your data contains any bitmaps, add those to a seperate folder 4. zip the whole content and add the file extension that is associated with your WPF application 5. save the file do the reverse order to get it loaded. select the File, Unzip and deserialize
- Regards -
J O N
A good thing is a bad thing if it keeps you from the best thing. - Dr. Adrian Rogers