AutoCompleteView
Universal autocomplete view control for MAUI.
Inherits: ContentView
Constructors
public AutoCompleteView()
autoCompleteView = AutoCompleteView()
Creates a new AutoCompleteView.
Properties
public bool IsPopupOpen { get; set; }
value = autoCompleteView.IsPopupOpen
autoCompleteView.IsPopupOpen = value
Gets or sets whether the popup is open.
public IEnumerable ItemsSource { get; set; }
value = autoCompleteView.ItemsSource
autoCompleteView.ItemsSource = value
Gets or sets the items source.
public DataTemplate ItemTemplate { get; set; }
value = autoCompleteView.ItemTemplate
autoCompleteView.ItemTemplate = value
Gets or sets the item template.
public int MinimumPrefixLength { get; set; }
value = autoCompleteView.MinimumPrefixLength
autoCompleteView.MinimumPrefixLength = value
Gets or sets the minimum prefix length before showing suggestions.
public string Placeholder { get; set; }
value = autoCompleteView.Placeholder
autoCompleteView.Placeholder = value
Gets or sets the placeholder text.
public string SearchText { get; set; }
value = autoCompleteView.SearchText
autoCompleteView.SearchText = value
Gets or sets the search text.
public ICommand SelectCommand { get; set; }
value = autoCompleteView.SelectCommand
autoCompleteView.SelectCommand = value
Gets or sets the select command.
public object SelectedItem { get; set; }
value = autoCompleteView.SelectedItem
autoCompleteView.SelectedItem = value
Gets or sets the selected item.
public bool ShowClearButton { get; set; }
value = autoCompleteView.ShowClearButton
autoCompleteView.ShowClearButton = value
Gets or sets whether to show the clear button.
Events
public event EventHandler<object> ItemConfirmed
autoCompleteView.ItemConfirmed += handler
Raised when an item is confirmed.
public event EventHandler<object> ItemSelected
autoCompleteView.ItemSelected += handler
Raised when an item is selected.
public event EventHandler<string> SearchTextChanged
autoCompleteView.SearchTextChanged += handler
Raised when the search text changes.
Fields
public static readonly BindableProperty IsPopupOpenProperty
value = AutoCompleteView.IsPopupOpenProperty
Is popup open bindable property.
public static readonly BindableProperty ItemsSourceProperty
value = AutoCompleteView.ItemsSourceProperty
Items source bindable property.
public static readonly BindableProperty ItemTemplateProperty
value = AutoCompleteView.ItemTemplateProperty
Item template bindable property.
public static readonly BindableProperty MinimumPrefixLengthProperty
value = AutoCompleteView.MinimumPrefixLengthProperty
Minimum prefix length bindable property.
public static readonly BindableProperty PlaceholderProperty
value = AutoCompleteView.PlaceholderProperty
Placeholder bindable property.
public static readonly BindableProperty SearchTextProperty
value = AutoCompleteView.SearchTextProperty
Search text bindable property.
public static readonly BindableProperty SelectCommandProperty
value = AutoCompleteView.SelectCommandProperty
Select command bindable property.
public static readonly BindableProperty SelectedItemProperty
value = AutoCompleteView.SelectedItemProperty
Selected item bindable property.
public static readonly BindableProperty ShowClearButtonProperty
value = AutoCompleteView.ShowClearButtonProperty
Show clear button bindable property.