Search code examples
c#wpfmvvmsaveapplication-settings

Save something in settingsfile or.. ? in C#


I am implementing an application and I have a few lists with some stuff in it, which is always the same, but I don't want to implement this in my real logic stuff.

Is there any way to save these items in your application? I've read some things about saving these items in a settingsfile.

Is this the best way, or there are better ways? and how can I do this?


Solution

  • Save in XML. You can bind directly to xml in wpf. See: http://joshsmithonwpf.wordpress.com/2007/06/04/binding-to-xml/