Highlighting matched text

An item can be picked with more clarity by highlight the matching characters in a suggestion list using the following two ways:

  • First occurrence

  • Multiple occurrence

Highlighting the text can be indicated with various customizing styles by enabling the following properties:

  • HighlightedTextColor - sets the color of the highlighted text for differentiating the highlighted characters.


The drop-down text can be highlighted only when the AllowFiltering is set to true.

First occurrence

Highlights the first position of the matching characters in the suggestion list.

combobox.AllowFiltering = true;
combobox.IsEditableMode = true;
combobox.TextHighlightMode = OccurrenceMode.FirstOccurrence;
combobox.HighlightedTextColor = Color.Red;


The default Color of HighlightedTextColor is Red.
The default FontTypeFace of HighlightedTextFontTypeFace is None.

Multiple Occurrence

Highlights the matching character that occurs everywhere in the suggestion list for Contains case in SuggestionMode.

combobox.IsEditableMode = true;
combobox.TextHighlightMode = OccurrenceMode.MultipleOccurrence;
combobox.HighlightedTextColor = Color.Red;
combobox.SuggestionMode = SuggestionMode.Contains;