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
Post a Comment