Back to Devexpress

AutoSuggestEdit.SuggestionChoosing Event

wpf-devexpress-dot-xpf-dot-editors-dot-autosuggestedit-17cc4f76.md

latest2.0 KB
Original Source

AutoSuggestEdit.SuggestionChoosing Event

Occurs before the editor accepts the selected value and allows you to substitute a selected popup item with another object.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event EventHandler<AutoSuggestEditSuggestionChoosingEventArgs> SuggestionChoosing
vb
Public Event SuggestionChoosing As EventHandler(Of AutoSuggestEditSuggestionChoosingEventArgs)

Event Data

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

PropertyDescription
HandledGets or sets whether item substitution operation is handled and no default processing is required.
SelectedItemGets the data item that corresponds to a suggestion that is about to be chosen.

Remarks

Handle the SuggestionChoosing event to substitute a selected popup item with another object.

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