문제

I have a view model (an ObservableCollection list) set as ItemsSource for a ListBox. When I refresh this view model (get new data from network), should I set ItemsSource again, or just let it notify the ListBox ?

Which solution gains the most performance ?

P/S: Answer targeting Windows Phone 7 is prefered.

도움이 되었습니까?

해결책

If you have your ListBox`s ItemSource set to an ObservableCollection there is nothing you need to do. Just add/remove items to/from the ObservableCollection.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top