title: Trouble databinding in code to wpf listbox from custom IList implementation
body: <p>I have a class CustomCollection : IList which maintains a list of CustomObject Types.</p>
  
  <p>This is what I tried, but it's not working (provider.Data is readonly):</p>
  
  <pre><code>CustomCollection collection1 = somesampledata;
  
  ObjectDataProvider provider = new ObjectDataProvider();
  provider.ObjectType = typeof(CustomObject);
  provider.Data = collection1;
  // could provider.Method = "collection1.GetItems", or something similar work?
  
  Binding binding = new Binding();
  binding.Source = provider;
  binding.Mode = BindingMode.OneTime;
  
  listBox1.SetBinding(ListBox.ItemsSourceProperty, binding);
  </code></pre>