I've a TextBox, can I autocomplete using 5 options that I've in a List?
It would be great if this could be done using Binding and XAML.
There is no standard auto complete control in WPF. You can google for 3rd parties. But there is one very easy way to create simplistic auto complete control by slightly adjusting an 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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With