Xuni Product Documentation - Xamarin.Forms
Highlight Matches

The XuniAutoComplete control enables quick identification of user input in the search result by highlighting the matching text. For this, the XuniAutoComplete class provides the HighlightBackgroundColor property that sets the highlight color for the matching characters. You can explicitly set this property to a specific color so that the user input string gets highlighted in the search results as shown in the following image.

Highlight Background in XuniAutoComplete

The following code example shows setting the text highlight feature in XuniAutoComplete control.

C#
Copy Code
this.autoComplete.HighlightBackgroundColor = Color.Blue;

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback