The easiest way to bind to CLR objects with WPF (or Blend) is to derive a list from ObservableCollection. Furthermore, in order to get design-time support, you need to implement a constructor that fills up the list with “dummy” data that can be displayed by Blend.
Thus, I added this class to my CD cover example:

I create an ECO space, open it and retrieve 10 objects from the database. Finally, I add them to the list.
You can now easily bind to CoverDummyCollection in Blend and design your listbox or any other control having a real design-time view that gives you a clear impression of what everything will look like during run-time.

No comments
Comments feed for this article
Trackback link
http://www.flickdotnet.de/index.php/2007/11/expression-blend-design-time-support-for-eco-objects/trackback/