Hello to everyone, thanks for the support.
I am using autocomplete in a xamarin forms project.
On android works all but on ios me from this error when imposing the datasource binding:
System.IndexOutOfRangeException: Index has to be >= lower bound and <= upper bound of the array.
my xaml:
<xForms:SfAutoComplete HeightRequest="40" x:Name="autoComplete"
SuggestionMode="Contains"
Watermark="{view:Translate CodiceFornitore}"
AutoCompleteMode="SuggestAppend"
DisplayMemberPath="Descrizione"
TextSize="14"
MinimumPrefixCharacters="1"
DataSource="{Binding ListaFor }"/>
my viewmodel:
public override void OnNavigatingTo(NavigationParameters parameters)
{
listaFornitori= parameters["listaFornitori"] as List<OggettoGenerico>;
ListaFor = new List<OggettoGenerico>(listaFornitori);
.......