What is The difference between ListBox and ListView

Rasto picture Rasto · Jan 16, 2011 · Viewed 143.4k times · Source

What is the difference between WPF's ListBox and ListView? I can not find any significant difference in their properties. Is there different typical use?

Answer

Thomas Levesque picture Thomas Levesque · Jan 16, 2011

A ListView is basically like a ListBox (and inherits from it), but it also has a View property. This property allows you to specify a predefined way of displaying the items. The only predefined view in the BCL (Base Class Library) is GridView, but you can easily create your own.

Another difference is the default selection mode: it's Single for a ListBox, but Extended for a ListView