ListBoxEdit.SelectedItem Property
Gets or sets the currently selected item. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Object | An object that represents the currently selected item. |
Remarks
If multiple item selection is enabled, the SelectedItem property returns the first element in the ListBoxEdit.SelectedItems collection.
To obtain the currently selected item’s index, use the ListBoxEdit.SelectedIndex property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedItem property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.