Back to Devexpress

LookUpEditBase.SelectedItems Property

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-1477de1b.md

latest2.3 KB
Original Source

LookUpEditBase.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 items can be selected if the editor represents a checked combo box. Otherwise, to obtain the selected item, use the LookUpEditBase.SelectedItem property. Its index is returned by the LookUpEditBase.SelectedIndex property.

Note

The editor’s EditValue property returns a List<T><Object,> of selected items when multiple items are selected. This List<T><Object,> is recreated each time the selection is changed. Changing the collection of items returned by the EditValue property does not affect the actual set of selected items.

See Also

Editor Operation Modes

StyleSettings

LookUpEditBase Class

LookUpEditBase Members

DevExpress.Xpf.Editors Namespace