Back to Devexpress

AutoSuggestEdit.SuggestionChosen Event

wpf-devexpress-dot-xpf-dot-editors-dot-autosuggestedit-d0702a33.md

latest1.8 KB
Original Source

AutoSuggestEdit.SuggestionChosen Event

Occurs when an end user selects a suggestion in the dropdown list and the editor accepts the selected value.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event EventHandler<AutoSuggestEditSuggestionChosenEventArgs> SuggestionChosen
vb
Public Event SuggestionChosen As EventHandler(Of AutoSuggestEditSuggestionChosenEventArgs)

Event Data

The SuggestionChosen event's data class is AutoSuggestEditSuggestionChosenEventArgs. The following properties provide information specific to this event:

PropertyDescription
SelectedItemGets the data item that corresponds to a chosen suggestion.

Remarks

Handle the SuggestionChosen event to display a custom text within the editor’s text box when an end user chooses an item.

Use the event arguments’ SelectedItem property to get the data item that corresponds to a chosen suggestion.

See Also

AutoSuggestEdit Class

AutoSuggestEdit Members

DevExpress.Xpf.Editors Namespace