开发者

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!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜