Convert a textbox to autocomplete in c# wpf window? -


I am creating a desktop application using WPF in VisualStudio 2013.

I have a WPF window text box.

How do I convert this text box to auto-complete?

The easiest way to use a combo box instead of a textbox is to support the combobox autocomplete. In WPF, you can then use the textbox template to override the standard combo box template. My advice is to use the combo box.

  & lt; Combo box name = "CBOx" margin = "0" vertical alignment = "top" Christianity = "True" & gt; & Lt; ComboBoxItem & gt; A & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Three & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Four & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two2 & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two2b & lt; / ComboBoxItem & gt; & Lt; / ComboBox & gt;   

You can also use the autocomplete text box from CodePlex:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -