Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Best way to save/load data locally. WPF

Best way to save/load data locally. WPF

Scheduled Pinned Locked Moved WPF
csharpwpf
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paul Harsent
    wrote on last edited by
    #1

    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.

    P S J 3 Replies Last reply
    0
    • P Paul Harsent

      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.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • P Paul Harsent

        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.

        S Offline
        S Offline
        SledgeHammer01
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • P Paul Harsent

          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.

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          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


          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups