質問

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