This is the first in a series of blog posts which run through the demos from my PDC 2010 talk, with small updates and full code download.
The Demo
Download the sample
Load the xap and then compare the two scenarios on the main page. Look out for:
Takeaway
<ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel> </StackPanel> </ItemsPanelTemplate></ListBox.ItemsPanel>
When Should I Use One Over the Other?
The VSP is the desired Panel for most cases, though for small lists (1 – 200 items) that don’t take up to much memory (don’t forget to measure!) you may find that If you can handle the startup cost, the list will handle a lot better (especially for complex DataTemplates).