WPF Reflections

Nov 15 2007   3:48PM GMT

ListView – is it really too slow?

Mark Shurmer Profile: MarkWPF

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
 

2  Comments on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • MarkWPF
    [...] I went looking online for an answer and discovered a list of possible performance killers for the ListView (and ListBox) on Mark Shurmer’s blog. Chief among his no-no’s: Embedding the ListView inside a [...]
    0 pointsBadges:
    report
  • Userexperience
    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. www.perfectmind.com Let me know what you think.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: