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 ...
Get XAML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.