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

ListBox

The familiar ListBox control, shown in Figure 10.1, is similar to ComboBox except that all items are displayed directly within the control’s bounds, or you can scroll to view additional items if they don’t all fit. The most important feature of ListBox is that it can support multiple simultaneous selections. This is controllable via the SelectionMode property, which accepts three values (from a SelectionMode enumeration):

Image Single—Only one item can be selected at a time, just like with ComboBox. This is the default value.

Image Multiple—Any number ...

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