I have tried with an observable collection but when i arrive on this line of code
the application stay in pause , the screen stays frized
This is the piece of code in the xaml
<sfComboBox:SfComboBox DataSource="{Binding ListEmailTo}"
SelectedItem="{Binding EmailTo}"
MultiSelectMode="Token" TokensWrapMode="Wrap"
ClearButtonColor="{StaticResource Primary}"
TextColor="{StaticResource PrimaryText}"
DropDownTextColor="{StaticResource PrimaryText}"
DropDownBorderColor="{StaticResource Primary}"
IsSelectedItemsVisibleInDropDown ="False">
<sfComboBox:SfComboBox.TokenSettings>
<sfComboBox:TokenSettings BackgroundColor="{StaticResource Primary}" TextColor="White"
IsCloseButtonVisible="true"
DeleteButtonColor="{StaticResource PrimaryDark}">
</sfComboBox:TokenSettings>
</sfComboBox:SfComboBox.TokenSettings>
</sfComboBox:SfComboBox>
in the code properties are set in this way
private ObservableCollection<object> _EmailTo;
public ObservableCollection<object> EmailTo
{
get { return _EmailTo; }
set { SetProperty(ref _EmailTo, value); }
}
private ObservableCollection<object> _ListEmailTo;
public ObservableCollection<object> ListEmailTo
{
get { return _ListEmailTo; }
set { SetProperty(ref _ListEmailTo, value); }
}
and the piece of code when i set the variables is this
foreach (var item in invioEmailToInfo.Item1.ToList())
{
ListEmailTo.Add(item.Email);
}
EmailTo = new ObservableCollection<object>();
foreach (var item in invioEmailToInfo.Item2.Split(Convert.ToChar(",")))
{
EmailTo.Add(item);
}
Xamarin version 4.2.0.910310
Syncfusion.Xamarin.SfComboBox 17.3.0.19
Best Regards
Alberto C.