Updating a GUI element when datasource changes
I have a silverlight app and a listbox in it whic I populate using:
listItems.ItemsSource = App.AvailableProductLi开发者_StackOverflow社区st;
If i then add an element to the AvailableProductList, the listbox will NOT be automatically updated. Does anyone knows how to update the listbox?
tks, Oscar
I was using the List, I changed to ObservableCollection and it worked :)
Tks!
精彩评论