WPF Reflections

Nov 15 2007   3:48PM GMT

ListView – is it really too slow?



Posted by: MarkWPF
C, ListView, WPF

I have seen a number of blog entries along the lines of ‘ListView is too slow’, or ‘WPF is too slow’, or the worst one of all ‘ListView has performance issues’.
Obviously none of them mention any details, nor elaborate on what issues there might be – sounds a bit like an old project manager of mine :-)

So, what is the reality? That is difficult to know, as there a number of things that can adversely affect the performance of a ListView – but are by no means certain to do so!

Some of the things that may affect performance are:

  • Embedding the ListView inside a StackPanel
  • Embedding the ListView inside a ScrollViewer
  • Not setting ScrollViewer.CanContentScroll to true
  • Having too many columns
  • Having UI Virtualization turned off (VirtualizingStackPanel.IsVirtualizing)

 There may be some more!

To answer the question, is it too slow? As long as you follow the above, then no
 

Comment on this Post

Leave a comment:

Userexperience  |   Oct 21, 2008  12:20 AM (GMT)

I’ve heard the same rumors as well, but apparently one provider has come out with a PaaS that is BUILT on WPF and isn’t slow at all, and actually solves all of the problems that WPF has been rumored to have.

http://www.perfectmind.com

Let me know what you think.


 

Userexperience  |   Oct 21, 2008  12:23 AM (GMT)

[A href="www.perfectmind.com"]www.perfectmind.com[/A]

Sorry, the link wasn’t posted right previously.