Xamarin.Android | ComponentOne
Controls / Input / AutoComplete / Features / AutoComplete Mode
In This Topic
    AutoComplete Mode
    In This Topic

    AutoComplete supports multiple filtering criteria's that can be used to filter the items list based on the user input. These filtering criteria's are defined in the AutoCompleteMode enumeration and can be set using the AutoCompleteMode property. The AutoCompleteMode property works as a series of flags, therefore, you can set multiple filtering criteria. The property AutoCompleteMode accepts values from AutoCompleteMode enumeration which specifies the mode for automatic completion in the control through following values:

    1. StartsWith
    2. Contains
    3. EndsWith
    4. MatchCase
    5. MatchWholeWord

    The following image shows how the AutoComplete control appears after setting the AutoCompleteMode property.

    The following code example shows setting the auto complete mode feature in the AutoComplete control.

    In Code

    C#
    Copy Code
    autoComplete.AutoCompleteMode = AutoCompleteMode.Contains | AutoCompleteMode.StartsWith;