Selection
In addition to supporting swipe selection, which applies only to touch input, ListView also supports selection via right tap. A right tap can not only be done by a mouse or pen, but by a press-and-hold touch gesture as well.
ListView’s SelectionMode property is a bit different from ListBox’s. The ListView property is of type ListViewSelectionMode, which adds a None value to the typical Single, Multiple, and Extended options. The default SelectionMode is Single, as with ListBox. When the SelectionMode is None, no item ever gets selected by user input, although the items can still get focus.
The behavior of the Multiple versus Extended SelectionMode is more subtle for ListView than it is for ListBox, but the result is more useful. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access