O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required