ListBoxEdit.SelectedItems Property

Gets the collection of selected items. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll


public ObservableCollection<object> SelectedItems { get; }
Public ReadOnly Property SelectedItems As ObservableCollection(Of Object)

Property Value

Type Description

The collection of selected items.


Multiple item selection is allowed if the ListBoxEdit.SelectionMode property is set to 'Multiple' or 'Extended'. If the ListBoxEdit represents a radio list, multiple item selection is not allowed.

Use the SelectedItems property to obtain selected items. The ListBoxEdit.SelectedItem property returns the first element in this collection.

To select an item, preserving the existing selection, add this item to the SelectedItems collection. Removing an item from this collection, unselects the item.

Each time the selection changes, the BaseEdit.EditValueChanged event is fired.


See Also