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?
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.
ListView
ListBox
View
GridView
Another difference is the default selection mode: it's Single for a ListBox, but Extended for a ListView
Single
Extended
2.1m questions
2.1m answers
60 comments
57.0k users