Back to Devexpress

ListBoxEdit.SelectedItems Property

wpf-devexpress-dot-xpf-dot-editors-dot-listboxedit-cf8a687e.md

latest2.0 KB
Original Source

ListBoxEdit.SelectedItems Property

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

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
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

ListBoxEdit Class

ListBoxEdit Members

DevExpress.Xpf.Editors Namespace