A couple of days ago, I was working on program that can process the results of students. I wanted to create a listboxitem for every student that contains a textblock for the name and a textbox to insert or update the result. After asking advise on different forums and a lot of trying and failing, I finally found a way to get this done. I use a ObservableCollection for data binding to my listbox. Use a datatemplate to put different controls in the itemtemplate, and a value converter to indicate if the student is passed or not. My conclusion: an ObservableCollection is very powerful! You can download the tutorial and the entire source code:
More tutorials can be found on my blog: http://wpf-tutorials.livejournal.com