title: How do I Bind observableCollection of strings to a listBox
body: <p>I have an observableCollection instance, I'd like to bind it to a list, and give the user the ability to change the strings in this collection directly.</p>
  
  <p>The current implementation is as follows:</p>
  
  <pre><code>class container
  {
      public OBservableCollection&lt;string&gt; data {get; set;}
      public container() { data = new ... }
  }
  ...
  var instance = new container();
  listBox.ItemsSource = instance.data;
  </code></pre>
  
  <p>and for the XAML:</p>
  
  <pre><code>&lt;ListBox&gt;
   &lt;ListBox.ItemTemplate&gt;
    &lt;DataTemplate&gt;
     &lt;StackPanel Orientation="Horizontal"&gt;
      &lt;TextBox Text="{Binding}" MinWidth="50"/&gt;
     &lt;/StackPanel&gt;
    &lt;/DataTemplate&gt;
   &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>When I add any string to that list an error appears, "Two-way binding requires Path or XPath.". I tried the path value to be "." since I am targeting the same source value, but the binding failed.</p>
  
  <p>Please advise, </p>