I have a large ObservableCollection containing text data which is populated to a listbox itemssource. Data fetching is fine, but Listbox rendering takes time, about 4-5 seconds. Plus, I have a textbox where I want to filter out the listbox itemesource, if the text entered in the textbox starts with the item's text using Linq.

List<Locality> l = Collection.FindAll(Locality=>Locality.name.ToLower().StartsWith(keywordlocation.Text.Trim()));

The filtering also takes time in the data set and is ruining user experience. Any ideas how to decrease the rendering time and improve filtering.

有帮助吗?

解决方案

Solved. Missed on a few details. VirtualizationStackpanel mode set to Recycling helped in rendering data faster and filtering out content.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top