Articles in this section
Category / Section

How to customize the editing TextBox in WinUI AutoComplete

2 mins read

This article explains how to customize the editing TextBox in WinUI AutoComplete.

The appearance of the editing textbox in AutoComplete control can be customized using the TextBoxStyle property. The default value of TextBoxStyle is null.

XAML:
<editors:SfAutoComplete
   SelectionMode="Single"
   ItemsSource="{Binding SocialMedias}"
   DisplayMemberPath="Name"
   TextMemberPath="Name"
   ShowClearButton="False"    
   Width="250"
   x:Name="autoComplete">
  <editors:SfAutoComplete.TextBoxStyle>
       <Style TargetType="TextBox">                   
           <Style.Setters>              
               <Setter Property="SelectionHighlightColor" Value="Green"/>  
               <Setter Property="BorderThickness" Value="0"/> 
           </Style.Setters>
       </Style>
   </editors:SfAutoComplete.TextBoxStyle>
</editors:SfAutoComplete>

winui-autocomplete-textboxstyle.png

Conclusion

I hope you enjoyed learning about how to add Auto-Append UI in WinUI ComboBox control.

You can refer to our WinUI AutoComplete feature tour page to learn about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our components from the Licence and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forum, Support portal, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied