Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have to create a control which lists all parent entities and each of these entities have thousands of children.
Right now i have listed these parent entities in a listbox and each of these listboxitems has an itemtemplate which contains a Listbox with thousands of Listboxitems.

The problem i face is memory consumption.
My application consumes atleast 1GB and crashes.
I am sure UI virtualization is the issue here. Whenever i explicitly hard code the height of both these listboxes UI Virtualization kicks in and the memobry consumption drops to just 200 MB.
I dont want to hard code the height of the listboxes. Can someone help me?
Posted
Comments
Pheonyx 22-Oct-13 4:35am    
Could you not implement some sort of paging? So it only lists say 25% of the elements on the first page then as the user scrolls down, it retrieves additional entries?
Tom George 19 22-Oct-13 4:55am    
Well.. I did'nt explore those options yet.. Would do that also now. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900