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

3  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.
  • Designer WPF » Blog Archive » ListView (and ListBox) Performance Issues
    [...] 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:
  • 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:
  • MichaelE

    I've seen many people say that following just these steps have given them back performance.  Unfortunately the one thing missing is that the framework (as far as I know) does not provide a Virtualized data list to bind to that ListBox.  So with large amounts of data we still have issues with performance in the 4.6 framework!  My test file has 25000 records and in production our ordinance puts out more than 68,000 messages we need to work with.

    10 pointsBadges:

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:

Share this item with your network: