I'm working on a WPF Application where there are multiple list views.
I get all the data necessary for all the list view at once. However, my requirement is such that, the list view that has less number of items should get loaded first and displayed to the user before the next list view starts getting loaded.
So basically, I need the ListView1 to be loaded and made visible to the user first. Then ListView2 starts getting loaded and when complete is made visible to the user. In other words, all the list views are loaded when the page is loaded 9one by one) and each one is made visible right after it is loaded.
I tried using something equivalent to DoEvents() http://www.cnblogs.com/sheva/archive/2006/08/24/485790.html But it did not work.
Just to clarify; When the page is loaded and items for lv1 are populated and lv1 is shows with the items, but lv2 and lv3 will be EMPTY. Then the items for lv2 is loaded and we should see lv1 and lv2 populated with their items. At this time lv3 should be visible and empty. Then we'll get the items for lv3 and all the list views will be populated. All of them should be visible right after the first one is loaded with its items. Can anyone suggest any way to achieve this?
Thanks.