views:

30

answers:

1

Suppose I have a listbox with a couple of items, in my case audio recording inputs. I want to show the list of available inputs - each input is an item in the listbox. The inputs should be updated realtime, so each item in the listbox has an indicator of the recorded audiolevel in realtime.

How would I go about databinging my listbox to an ObservableCollection where the property "Level" of each item in that collection (type AudioDeviceInfo) is updated every [let's say 100] milliseconds ?

I've implemented the INotifyPropertyChange interface on AudioDeviceInfo and it raises the propertychange everytime the level is changed/updated, but my Listbox (bound to an ObservableCollection of AudioDeviceInfo's) only shows the level it got the first time - no updates on changes...

A: 

Answering my own question:

Sorry, it works as it should, the problem was in my own setup. Implementing INotifyPropertyChanged DID fix the problem, the changes just were not big enough to show up in my UI - louder input showed me some response :)

IUsedToBeAPygmy