title: Making a simple database-like program with C#/WPF
body: <p>I'm working on making a small independent game, and I've reached the point where I'm storing data in XML files, and I'd like to be allow the non-programmers on my team to edit them easily via a GUI, which I'd like to put together with WPF and C#.</p>
  
  <p>I have plenty of experience with C#, but barely any with WPF.</p>
  
  <p>The program would have the following class:</p>
  
  <pre><code>class Foo {
      public string Name;
      public int Age;
  
      public Foo(string name, int age) {
          Name = name;
          Age = age;
      }
  }
  </code></pre>
  
  <p>And the "database" would just be a</p>
  
  <pre><code>public List&lt;Foo&gt; FooList = new List&lt;Foo&gt;();
  </code></pre>
  
  <p>What I'd like to make, simplified, is a window with a ListBox on the left side, with "add" and "delete" buttons beneath it (to add and delete items to and from the FooList). The ListBox should have all of the entries in FooList (displaying their Name). On the right side of the window should be a field for Name and Age, and probably some kind of "Save" button.</p>
  
  <p>Now, I could hack this together myself, and I was just about to, when I learned about the existence of data binding. I have no idea how it works (other than that it seems to let you bind controls to variables or something), but it seems like it would make making this a lot easier, right?</p>
  
  <p>I apologize in advance if this seems like too much of a "do everything for me"-type question. I barely know WPF at all, like I said earlier, but I can, for example, handle the serialization and file saving parts myself. I just have no clue how data binding works and how to implement it into my situation (assuming this is even what I want to do).</p>
  
  <p>Thanks in advance!</p>