This question is locked. New answers and comments are not allowed.
I have an implementation of an IList collection specifically to speed virtualization of a list that I want to show via the DataBoundListBox (we're porting it from a LazyListBox implementation from the WP7 team). Currently we've not implemented GetEnumerator on our collection because that would be very slow (as the collection may have 50K+ items in it. The use case is that we usually use BringItemIntoView to move the listbox as the user types in the SIP. While porting this functionality to DBLB you're calling our GetEnumerator. We could implement it but I think this would just cause you to read the entire list instead of using our indexer (via the IList).
Can you suggest the correct way to get the best perf from the DBLB?
The underlying object that the collection wraps is a Perst database index so there is a lookup from an index object (via ordinal row position) if that explains why we're not just loading up a full collection in memory.
If you need a repro-case to explain, I can supply (but it's non trivial).
Can you suggest the correct way to get the best perf from the DBLB?
The underlying object that the collection wraps is a Perst database index so there is a lookup from an index object (via ordinal row position) if that explains why we're not just loading up a full collection in memory.
If you need a repro-case to explain, I can supply (but it's non trivial).