Configure ListBox in WPF so that I will be possible to select multiple items without holding CTRL key Configure ListBox in WPF so that I will be possible to select multiple items without holding CTRL key wpf wpf

Configure ListBox in WPF so that I will be possible to select multiple items without holding CTRL key


Use

SelectionMode="Multiple"

From the MSDN:

The SelectionMode property determines how many items a user can select at one time. You can set the property to Single (the default), Multiple, or Extended. The following table described the behavior of these enumeration values.

Single The user can select only one item at a time.

Multiple The user can select multiple items without holding down a modifier key.

Extended The user can select multiple consecutive items while holding down the SHIFT key or non-consecutive items by holding down the CTRL key and clicking the items.