Im trying to implement a lazy "load more" items when the user gets to the bottom of the listbox, but everytime i try to add new items to the listbox i get results like this:
"Operation not supported on read-only collection."
I've already tried several solutions from forums to blogs none seem to work. I can't even understand the logic behinds the problem which seems a bit odd for me.
What i'm doing is basically loading a list of items and assigning as the itemsource of my listbox.
wineFilterListBox.ItemsSource = wines;
When the user gets to the bottom of the list, i add more items (just like twitter app for wp7)
public ObservableCollection<Wine> wines;
...
if (atBottom)
{
int Count = page.wineFilterListBox.Items.Count;
int end = Count + 10;
for (int i = Count; i < end; i++)
{
page.LoadWineList(Count);
}
}
...
private void LoadWineList(int Count = 1)
{
...
wineFilterListBox.Items.Add(wines);
}