---
title: "6 Incredible Features of WPF AutoComplete Text Box"
published_at: "2021-03-10T10:59:21+00:00"
modified_at: "2026-02-10T11:30:02+00:00"
url: "https://www.syncfusion.com/blogs/post/6-features-of-wpf-autocomplete-text-box"
excerpt: "Our Syncfusion WPF AutoComplete text box control is a complete MVVM-structured (model-view-viewmodel) control. It provides autocomplete functionality with features like data binding, different search modes, drop-down customization, and themes. This control is the best choice if you need autocomplete functionality..."
taxonomy_category:
  - "Desktop"
  - "WPF"
taxonomy_post_tag:
  - "Autocomplete"
  - "ComboBox"
  - "desktop"
  - "UI controls"
  - "WPF"
---

# 6 Incredible Features of WPF AutoComplete Text Box

[Paul Anderson](https://www.syncfusion.com/blogs/author/paulanderson)

![6 Incredible Features of WPF AutoComplete TextBox](https://www.syncfusion.com/blogs/wp-content/uploads/2021/03/6-Incredible-Features-of-WPF-AutoComplete-TextBox.png)


Our Syncfusion [WPF AutoComplete text box](https://www.syncfusion.com/wpf-ui-controls/autocomplete)
 control is a complete [MVVM](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel)
-structured (model-view-viewmodel) control. It provides autocomplete functionality with features like data binding, different search modes, drop-down customization, and themes. This control is the best choice if you need autocomplete functionality in the WPF [ComboBox](https://www.syncfusion.com/wpf-ui-controls/combobox)
. It can also be used as a multiselect combo box by enabling the multiselect mode in it.

In this blog post, I will give you a quick walk-through of our Syncfusion WPF AutoComplete text box control and its top six features:

- [Different filtering modes](#different-filtering-modes)
- [Multiple-selection support](#multiple-selection)
- [Text highlighting support](#text-highlighting)
- [Custom search](#custom-search)
- [Diacritic sense](#diacritic-sense)
- [Customizing AutoComplete control as a ComboBox](#customizing-wpf-autocomplete-control-as-a-combobox)

![WPF AutoComplete text box](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/WPF-AutoComplete-text-box.png)

WPF AutoComplete text box

## Different filtering modes

The WPF AutoComplete control comes with a predefined set of filtering modes that filter suggestions based on the characters typed in the text box. The preferred mode is [StartsWith](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SuggestionMode.html)
, which filters the suggestions when the beginning of the string has matches in the list.

The [Contains](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SuggestionMode.html)
 mode lists all the suggestion words that contain the character typed in the text box, similar to the Google search engine.

Refer to the following code example.

```
<syncfusion:SfTextBoxExt AutoCompleteSource="{Binding Countries}"
                         AutoCompleteMode="Suggest"
                         SuggestionMode="Contains"/>
```

Refer to the following screenshot.

![Contains filtering option in WPF AutoComplete](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/Contains-filtering-option-in-WPF-AutoComplete.png)

Contains filtering option in WPF AutoComplete

## Multiple selection

This feature allows you to select multiple items, similar to the email search bar available in the Outlook application. Users can select multiple items either by [token representation](https://help.syncfusion.com/wpf/autocomplete/single-and-multiple-selection#multiple-selection-using-tokens)
 or by simply dividing them with a [delimiter](https://help.syncfusion.com/wpf/autocomplete/single-and-multiple-selection#multiple-selection-using-delimiter)
. To do so, we have to set the [MultiSelectMode](https://help.syncfusion.com/wpf/autocomplete/single-and-multiple-selection#multi-selection)
 property to Token or Delimiter.

Customizable token representation allows users to remove an item with a close button. With this, users can divide the selected items with characters they choose, such as dollar representation ($), or by using the traditional comma.

Refer to the following code example.

```
<Syncfusion:SfTextBoxExt AutoCompleteSource="{Binding Countries}"
                         AutoCompleteMode="Suggest"
                         MultiSelectMode="Token"/>
```

Refer to the following GIF image.

![Multiselection mode in WPF AutoComplete](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/Multiselection-mode-in-WPF-AutoComplete.gif)

Multiselection mode in WPF AutoComplete

## Text highlighting

This feature highlights the matching text in each suggested item. This helps users detect how the items are filtered (in which filtering mode) and pick items with more clarity. It also makes the search easy with this UI.

Using [TextHighlightMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html#Syncfusion_Windows_Controls_Input_SfTextBoxExt_TextHighlightMode)
, users can choose whether to highlight a single instance or multiple occurrences of the character typed.

Refer to the following code example.

```
<Syncfusion:SfTextBoxExt AutoCompleteSource="{Binding Countries}"
                         AutoCompleteMode="Suggest"
                         SuggestionMode="Contains"
                         TextHighlightMode="MultipleOccurrence"
                         HighlightedTextColor="Red"/>
```

Refer to the following screenshot.

![Text highlighted in WPF AutoComplete suggestions list](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/Text-highlighted-in-WPF-AutoComplete-suggestions-list.png)

Text highlighted in WPF AutoComplete suggestions list

## Custom search

This feature allows users to perform a multipath search, or a custom search based on search criteria other than the predefined filtering modes. This can be done by setting the [SuggetionMode](https://help.syncfusion.com/wpf/autocomplete/autocomplete-and-filtering#filtering-options)
 property to [Custom](https://help.syncfusion.com/wpf/autocomplete/multipath-search)
. Users can also define a custom filter and assign it to the [Filter](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html#Syncfusion_Windows_Controls_Input_SfTextBoxExt_Filter)
 property.

Refer to the following code example.

```
{
     this.textboxext.SuggestionMode = SuggestionMode.Custom;
     this.textboxext.Filter = Filtering;
}

public bool Filtering(string search, object item)
    {
        var model = item as Model;
        if (model != null)
        {
            if ((model.Name.ToLower().Contains(search.ToLower())) || ((model.ID).ToString().ToLower().Contains(search.ToLower())))
            {
                return true;
            }
        }
        return false;
    }
```

Refer to the following screenshot.

![Multipath search in WPF AutoComplete](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/Multipath-search-in-WPF-AutoComplete.png)

Multipath search in WPF AutoComplete

## Diacritic sense

The AutoComplete control comes with a special feature for supporting languages with letters containing diacritic marks and searching for them with English characters from the keyboard. This feature helps populate items for your search by either considering or ignoring the [diacritic](https://help.syncfusion.com/wpf/autocomplete/diacritic-sensitivity)
.

Refer to the following code example.

```
<Syncfusion:SfTextBoxExt AutoCompleteSource="{Binding DiacriticCollection}"
                         AutoCompleteMode="Suggest"
                         IgnoreDiacritic="False"
                         SuggestionMode="Contains"/>
```

Refer to the following screenshot.

![Diacritic sensitivity in AutoComplete](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/Diacritic-sensitivity-in-AutoComplete.png)

Diacritic sensitivity in AutoComplete

## Customizing WPF AutoComplete control as a ComboBox

The WPF AutoComplete control can also be used as a ComboBox with autocomplete functionality by enabling the drop-down button. This can be done by setting the [ShowDropDown](https://help.syncfusion.com/wpf/autocomplete/textbox-customization#setting-the-dropdown-icon)
 property to true.

Refer to the following code example.

```
<Syncfusion:SfTextBoxExt AutoCompleteSource="{Binding Countries}"
                         AutoCompleteMode="Suggest"
                         ShowDropDown="True"/>
```

Refer to the following screenshot.

![AutoComplete text box as ComboBox](https://www.syncfusion.com/blogs/wp-content/uploads/2021/02/AutoComplete-text-box-as-ComboBox.png)

AutoComplete text box as ComboBox

## Conclusion

Thanks for reading! In this blog, we have covered the top six features of our Syncfusion [WPF Autocomplete](https://www.syncfusion.com/wpf-ui-controls/autocomplete)
 control to improve your application. Refer to our UG [documentation](https://help.syncfusion.com/wpf/autocomplete/overview)
 to learn about all the available features. You can also try our [WPF AutoComplete demos](https://github.com/syncfusion/wpf-demos/tree/master/dropdown/AutoComplete)
.

If you aren’t a customer yet, you can try our 30-day [free trial](https://www.syncfusion.com/downloads)
 to check out these features.

If you wish to send us feedback or would like to submit any questions, please feel free to post them in the comments section of this blog post. You can also contact us through our [support forum](https://www.syncfusion.com/forums)
, [feedback portal](https://www.syncfusion.com/feedback)
, or [Direct-Trac support system](https://www.syncfusion.com/support/directtrac/incidents)
. We are always happy to assist you!

If you liked this blog post, we think you’ll also like the following articles:

- 
  - [3 Steps to Lazy Load Data in WPF TreeView](https://www.syncfusion.com/blogs/post/3-steps-to-lazy-load-data-in-wpf-treeview.aspx) [Blog]
  - [Build Digital Logic Circuits Easily with Our WPF Diagram Control](https://www.syncfusion.com/blogs/post/build-digital-logic-circuits-easily-with-our-wpf-diagram-control.aspx) [Blog]
  - [Prevent Spelling Mistakes in Your WPF Applications](https://www.syncfusion.com/blogs/post/prevent-spelling-mistakes-in-your-wpf-applications.aspx) [Blog]
  - [WPF Succinctly](https://www.syncfusion.com/ebooks/wpf_succinctly) [Ebook]
