.NET MAUI AutoComplete Events
AutoComplete for .NET MAUI exposes the following events:
-
TextChanged
—Occurs when the text is changed. TheTextChanged
event handler receives aTextChangedEventArgs
argument containing data related to this event. TheTextChangedEventArgs
provides the following properties:-
NewTextValue
(string
)—Which gets the new text value. -
OldTextValue
(string
)—That gets the old text value.
-
You can find a working demo labeled Remote Search in the AutoComplete/Features folder of the SDKBrowser Demo application.
-
SuggestionItemSelected
—Occurs when an item is selected from theSuggestionsView
. TheSuggestionItemSelected
event handler receives two parameters:- The
sender
argument which is of type object, but can be cast to theRadAutoComplete
type. - A
SuggestionItemSelectedEventArgs
object which has a reference to the selected item through itsDataItem
property.
- The
-
FilteredItemsChanged
—Occurs when theFilteredItems
collection is updated. TheFilteredItemsChanged
event handler receives two parameters:- The
sender
argument which is of type object, but can be cast to theRadAutoComplete
type. - A
FilteredItemsChangedEventArgs
object which has a reference to filtered items collection itsFilteredItems
property.
- The
Completed
—Occurs when the user finalizes the text in an entry with the return key.