Skip to main content
A newer version of this page is available. .

ListBoxEdit.SelectedItems Property

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

Namespace: DevExpress.Xpf.Editors

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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