开发者

Updating a GUI element when datasource changes

开发者 https://www.devze.com 2023-01-27 21:35 出处:网络
I have a silverlight app and a listbox in it whic I populate using: listItems.ItemsSource = App.AvailableProductLi开发者_StackOverflow社区st;

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消