Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
The naming conventions on the SfAutoComplete Control do not follow English naming conventions.
"AddedItems" in SfAutoComplete.XForms.SelectionChangedEventArgs is always one single string, but the "SelectedItem" property of the control returns an array of items.
AddedItems should be changed to AddedItem, and SelectedItem should be changed to SelectedItems.
See the code below for the existing issue:
private void autoCompleteControl_SelectionChanged(object sender, Syncfusion.SfAutoComplete.XForms.SelectionChangedEventArgs e)
{
var items = e.AddedItems as List<string>; //AddedItems is one single string
var s = autoCompleteControl.SelectedItem as string; //SelectedItem is an array
Debug.WriteLine("Here are the items in the auto complete view:");
foreach(var i in items)
{
Debug.WriteLine(i);
}
}
Thank you, have a great day.