Dear Team,
I'm encountering some crashes with SfComboBox, only on UWP platform on a Xamarin.Forms project.
I've created a MultiSelectMode Token combobox with a pre-selected value upon entering the page, I can freely add and remove options and saving values works correctly. When i enter the page and I try to remove the pre-selected value, on iOS and Android works correctly; on UWP it works only if I remove it with the cross on the token, if I try to remove the token with a backspace I encounter an exception that's attached lower in the message.
The list of values I'm using as a source is a List<MyClass> object, while the SelectedValue is a MyClass object (I've tried with a List<MyClass> object but no token were shown).
The current version installed on my project of Syncfusion.Xamarin is: 17.4.0.47
This is the exception:
SfComboBox.OnKeyDown (KeyRoutedEventArgs e)
System.ArgumentNullException: Value cannot be null. Parameter name: source
This is my combobox:
<combobox:SfComboBox x:Name="multiCombo"
DataSource="{Binding MyListOfValues}"
IsEnabled="{Binding IsEnabled}"
SelectedItem="{Binding SelectedValue}"
MultiSelectMode="Token"
IsSelectedItemsVisibleInDropDown="False"
Watermark="{Binding PlaceholderValue}"
IsEditableMode="{Binding IsEditable}"
AllowFiltering="{Binding IsSearchable}"
SuggestionMode="Contains">
<combobox:SfComboBox.TokenSettings>
<combobox:TokenSettings BackgroundColor="{StaticResource FirstMainColor}"
FontSize="10"
HeightRequest="25"
TextColor="{StaticResource WhiteColor}" />
</combobox:SfComboBox.TokenSettings>
<combobox:SfComboBox.ItemTemplate>
<DataTemplate>
<StackLayout Margin="5"
Padding="5"
Orientation="Horizontal">
<Label FontAttributes="{Binding IsPlaceholder, Converter={StaticResource BoolToItalic}}"
FontSize="12"
HorizontalOptions="FillAndExpand"
Text="{Binding Description}"
TextColor="{StaticResource DarkTextColor}"
VerticalOptions="Center" />
</StackLayout>
</DataTemplate>
</combobox:SfComboBox.ItemTemplate>
</combobox:SfComboBox>
Regards