We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The WPF AutoComplete control provides a common autocomplete text box to select values from a predefined list easily and adds the common autocomplete paradigm to text boxes. The control is loaded with features to help you customize the behavior, look, and feel in many different ways.

WPF AutoComplete Getting Started documentation

Multiple selection

Select multiple items from the suggestion list and display the selected items either as tokens, such as in an email address bar, or text separated by a delimiter.

Token representation

Customizable token representation in the AutoComplete control allows users to remove an item with its close button.

Token Representation in WPF AutoComplete

Delimiter

Delimit the selected items with desired characters such as ‘$’ for dollar representation, or ‘,’ for traditional comma separation.

Delimiter in WPF AutoComplete

When a character is entered, the control searches for items related to the entered character and filters results, displaying the suggestion in the drop-down list.

Perform filtering when needed

The control starts offering matches as soon as users start typing. This feature can be changed by setting the number of characters required to start matching.

Filter

You can pick from various filtering options such as starts with, contains, and ends with. You can also choose whether to filter with or without case sensitivity.


Suggest, append, or both

The WPF AutoComplete control can suggest a list of filtered items in a pop-up or append the rest of the suggested words in the input area. It can also append the matched item and display the list of filtered items suggested in a pop-up at the same time.

Filtering in WPF AutoComplete


Diacritic Sensitivity

The WPF AutoComplete control is not limited to one type of keyboard, so it can be populated with items from a language with letters containing diacritics. Words with diacritics can be searched for with English characters from an en-US keyboard.


Pop-up

Pop-up placement

If the control is at the bottom of the application, where the default keyboard appears and would hide the pop-up, the pop-up can be placed at the top, instead.

Avoid pop-ups

APIs are available to avoid pop-ups and retrieve filtered suggestion items to arrange list or item controls.

Pop-up opening delay

Delay the opening of the pop-up.

Show suggestion on focus

APIs are available to display all the items in the pop-up whenever the control is in focus.


Matching text highlight

The AutoComplete control highlights the matching text of each filtered item. This option shows how the item is filtered in the list and clearly displays the items to be picked.

First occurrence

Highlights the matching text that occurs first.

WPF AutoComplete displays Highlighting First Occurence Character

Multiple occurrence

Highlights the matching text that occurs multiple times.

WPF AutoComplete displays Highlighting Multiple Occurence Characters


Customization

Custom template

The control accepts a template for pop-ups to change the look and feel of the items.

WPF AutoComplete with Custom Template

Appearance

The customizable appearance of the control is designed, by default, to adapt to the native look and feel of the deployment platform.

Customizing Appearance of WPF AutoComplete

Color customization

The color of pop-ups and text can be customized to fit the application design.

Customizing Text Color of WPF AutoComplete

Font size

The font size can be customized with pixel precision or with standard options such as small, medium, and large.

Customizing Font Size of WPF AutoComplete

Font family

Use traditional fonts or custom fonts, as suits your application. The control renders certain iconic fonts, too.

Changing Font Family of Text in WPF AutoComplete

Show in the AutoComplete control a drop-down button that users can click to open and select items from the suggestions.

WPF AutoComplete with DropDown Button


General information

MVVM support

Every aspect of the AutoComplete control has been designed with the MVVM pattern in mind.

WPF AutoComplete with MVVM

Localization

All static text can be localized with the required language.

Localization in WPF AutoComplete

Use real-time object

Along with a list of strings, a real-time object can also be used to direct the search member to search and display.

Searching in WPF AutoComplete

Bind icons

You can place icons in the pop-up lists. A member can also be assigned to form the object.

Binding Icon in WPF AutoComplete

Clear button

The Clear button is available to clear all the tokens with a single tap. The button can be enabled or disabled.

WPF AutoComplete displays Clear Button

Watermark

A watermark prompts with an information hint when the search box is not in focus and contains an empty string.


Not sure how to create your first WPF AutoComplete? Our documentation can help.


AutoComplete Code Example

Easily get started with the WPF AutoComplete using a few simple lines of XAML and C# code example as demonstrated below. Also explore our WPF AutoComplete Example that shows you how to render and configure the AutoComplete in WPF.

<Grid>
<syncfusion:SfTextBoxExt Width="300" Height="30" Text="Hello World!" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
</Grid>
public MainWindow()
        {
            InitializeComponent();
            Grid grid = new Grid();
            SfTextBoxExt sfTextBoxExt = new SfTextBoxExt();
            sfTextBoxExt.Width = 300;
            sfTextBoxExt.Height = 30;
            sfTextBoxExt.Text = "Hello World!";
            sfTextBoxExt.HorizontalContentAlignment = HorizontalAlignment.Center;
            sfTextBoxExt.VerticalContentAlignment = VerticalAlignment.Center;
            grid.Children.Add(sfTextBoxExt);
            this.Content = grid;
        }

95+ WPF CONTROLS

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion WPF Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon