This question is locked. New answers and comments are not allowed.
I do like the DataRequested event in the DataBoundListBox, so I use it to show some ObservableCollection<Item> items object. But the Datarequested event seems to not work properly. The scenarios is that:
At first the App loads some local ObservableCollection<Item> items which stored in the isolatedstorage, and sets the ItemSource of the DataBoundListBox by
Then, the App will fetch some web resource and transform this resource into a ObservableCollection<Item> items object, and use the code belowed to refresh the DataBoundListBox itemsource:
Then the problem comes, it's supposed that the DataRequested event willn't fire until the ListBox is pulled down to the bottom, but when I modify the ItemsSource of the DataBoundListBox, it'll fire.
So I'm wondering is there anything I've done wrong?
At first the App loads some local ObservableCollection<Item> items which stored in the isolatedstorage, and sets the ItemSource of the DataBoundListBox by
mainpageList.ItemsSource = itemsThen, the App will fetch some web resource and transform this resource into a ObservableCollection<Item> items object, and use the code belowed to refresh the DataBoundListBox itemsource:
items.Clear(); foreach (Item item in callbackItems) { items.Add(item); } mainpageList.ItemsSource = null; mainpageList.ItemsSource = items;Then the problem comes, it's supposed that the DataRequested event willn't fire until the ListBox is pulled down to the bottom, but when I modify the ItemsSource of the DataBoundListBox, it'll fire.
So I'm wondering is there anything I've done wrong?
