1

I found some AutoComplete TextBoxes, which allow completing the input on-the-fly when typing in.

I am looking for the same, but it should be a TextBox that also allows different input which is not in the list provided with the TextBox, so I can easily add new entries by just typing them in - an AutoSuggest TextBox.

1

Why not just use a Editable ComboBox in WPF. This will allow for you to have a list of items that you can select by the drop down or autofill when typing but gives you the benefit of free typing in a value also.

For Example:

<ComboBox Name="comboExample" IsEditable="True">  
  <ComboBoxItem Content="A"/>  
  <ComboBoxItem Content="B"/>  
  <ComboBoxItem Content="C"/>  
</ComboBox>  

If you just want to use the combobox as a textbox then just look at the text property of the combobox, in my example it would look like this in c#: 'comboExample.Text'. If you want to see if it used one of the predefined items, the comboExample.SelectedItem will have an item in it, otherwise if you free typed a new value that property will be null. I know this is not exactly what you asked for but I think it will work for what you are trying to accomplish.

| improve this answer | |
0

The Syncfusion AutoComplete allows for handling the “Enter” key press and adding the text entered in the control to the collection. Please refer to this sample.

enter image description here

| improve this answer | |
  • The WPF license costs 1000$. I am sure there is something free out there. And the example didn't compile at first try. – juergen d May 4 '15 at 22:53
  • @juergen-d The community license is free. You need to download and install Essential Studio first to get it to compile. Regards, Davis – Davis Jebaraj May 4 '15 at 22:56
  • 1
    @juergend: If you are exclusively looking for something free, please add the gratis tag to your question. – O. R. Mapper Aug 18 '16 at 6:24
  • This synfusion version is not working properly when there are 10000 records in combobox. Please suggest performance with syncfusion textbox. – user1241838 May 24 '17 at 14:43
  • @user1241838 We have modified the sample and tested by loading 10000 items into the AutoComplete, but we were unable to reproduce the reported behavior in our side. Could you please check the sample and confirm if you see issues. – Davis Jebaraj May 30 '17 at 21:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.