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):
Single—Only one item can be selected at a time, just like with ComboBox
. This is the default value.
Multiple—Any number ...
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.