A
TextBox which can propose various possible values for the
Text that is being typed.
The following code would display these results if a user types the letter "a" inside the AutoCompleteTextBox:
<xctk:AutoCompleteTextBox ClearButtonVisibility="WhileEditing"
WidthRequest="200">
<xctk:AutoCompleteTextBox.ItemsSource>
<x:Array Type="{x:Type x:String}">
<x:String>Alpha</x:String>
<x:String>American</x:String>
<x:String>Arabic</x:String>
<x:String>Amphibian</x:String>
<x:String>Boat</x:String>
<x:String>Car</x:String>
</x:Array>
</xctk:AutoCompleteTextBox.ItemsSource>
<xctk:AutoCompleteTextBox.ItemTemplate>
<DataTemplate>
<Label Text="{Binding}"
TextColor="White"
FontSize="18"
Margin="5"/>
</DataTemplate>
</xctk:AutoCompleteTextBox.ItemTemplate>
</xctk:AutoCompleteTextBox>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2