Class SfAutocomplete
SfAutocomplete provides a simpler way to complete the text based on the characters that the user has entered before. It also provides option to choose a suggestion from drop down or append a suggestion to the text directly.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Inputs
Assembly: Syncfusion.Maui.Inputs.dll
Syntax
public class SfAutocomplete : DropDownListBase, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, IVisualTreeElement, ITouchListener, ITextElement, IKeyboardListener
Constructors
SfAutocomplete()
Initializes a new instance of the SfAutocomplete class.
Declaration
public SfAutocomplete()
Fields
FilterBehaviorProperty
Identifies FilterBehavior bindable property.
Declaration
public static readonly BindableProperty FilterBehaviorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the FilterBehavior bindable property. |
SearchBehaviorProperty
Identifies SearchBehavior bindable property.
Declaration
public static readonly BindableProperty SearchBehaviorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the SearchBehavior bindable property. |
TextSearchModeProperty
Identifies TextSearchMode bindable property.
Declaration
public static readonly BindableProperty TextSearchModeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TextSearchMode bindable property. |
Properties
FilterBehavior
Filter behaviour property.
Declaration
public IAutocompleteFilterBehavior FilterBehavior { get; set; }
Property Value
Type | Description |
---|---|
IAutocompleteFilterBehavior |
IsDropDownOpen
Gets or sets a value indicating whether the drop down is open or close.
Declaration
public bool IsDropDownOpen { get; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false. |
SearchBehavior
Search behaviour property.
Declaration
public IAutocompleteSearchBehavior SearchBehavior { get; set; }
Property Value
Type | Description |
---|---|
IAutocompleteSearchBehavior |
TextSearchMode
Gets or sets the TextSearchMode
to search the item which matches the search text either with the beginning of the texts or contains the search text in the list.
Declaration
public AutocompleteTextSearchMode TextSearchMode { get; set; }
Property Value
Type | Description | ||||||
---|---|---|---|---|---|---|---|
AutocompleteTextSearchMode | A value that indicates the text search behavior for a Autocomplete control. The default value is StartsWith. Fields:
|
Methods
OnHandlerChanged()
Handler changed.
Declaration
protected override void OnHandlerChanged()