Does autocomplete work in WPF?

I have a TextBox, can I autofill using the 5 options that I have on the list?

It would be great if this could be done using Binding and XAML.

+4
source share
1 answer

There is no standard automatic full control in WPF. You can google for third parties. But there is one very simple way to create a simplified automatic full control by slightly adjusting the editable ComboBox template:

 <ComboBox IsEditable="True"> <ComboBox.Template> <ControlTemplate TargetType="{x:Type ComboBox}"> <TextBox x:Name="PART_EditableTextBox" /> </ControlTemplate> </ComboBox.Template> <TextBlock Text="Hello"/> <TextBlock Text="World"/> </ComboBox> 
+10
source

Source: https://habr.com/ru/post/1343471/


All Articles