new control AutoComplete
API Design
#1828
prabhav-mehra
started this conversation in
New Feature Discussions
Replies: 2 comments 19 replies
-
telerik has a similar control https://www.telerik.com/maui-ui/autocomplete |
Beta Was this translation helpful? Give feedback.
10 replies
-
There is a working example for an Autocompletion control called AutoSuggestBox at https://github.com/dotMorten/MauiEx |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A new control
AutoComplete
which will have the following API designAutocomplete Control
The Autocomplete control provides a user-friendly way to input text by suggesting possible matches as the user types. This README provides an overview of the Autocomplete control and its usage.
Features
Installation
The AutoComplete control is part of the CommunityToolkit.Maui.Controls library and can be used in your MAUI projects.
Usage
Properties
ItemsSource:
IList<object>
- Collection of items to be displayed in the autocomplete dropdown.SearchProperty:
string
- Name of the property to search for in each item.IsAutoFillEnabled:
bool
- Indicates whether the entry should be auto-filled with the selected item's text.true
SuggestionTemplate:
DataTemplate
- Custom template used to render the suggestions in the dropdown.Events
ItemSelectedEventArgs
containing the selected item.Example Usage (XAML)
Remarks
Entry
class as a base class so will inherit all of its functionality like TextChanged etc.@pictos @bijington @ThysBrits
Beta Was this translation helpful? Give feedback.
All reactions