Skip to main content

ListBoxEdit.SelectedItems Property

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

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public ObservableCollection<object> SelectedItems { get; }

Property Value

Type Description
ObservableCollection<Object>

The collection of selected items.

Remarks

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