Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
I'm trying to implement an SfChipGroup. I have it defined as follows:
<chip:SfChipGroup ItemsSource="{Binding SearchCriteria}" DisplayMemberPath="Criterion" ChoiceMode="Single" ChipType="Input" ChipPadding="8,8,0,0" ChipBackground="{StaticResource Surface3Brush}" ChipTextColor="{StaticResource InverseSurface}" HorizontalOptions="Start" VerticalOptions="Center" />
When I add an entry to SearchCriteria (ObservableCollection<SearchCriterion>, where SearchCriterion has a single public string Criterion {get; set;}), I get a visible chip.
As soon as I move the cursor onto the chip (to click the X button), I get an exception which I traced as follows:
SfChip.OnTouch -> ButtonBase.OnTouch -> if(e.Action == PointerActions.Moved) { if(Background != null && !IsEditorControl) { if(Background is SolidColorBrush && ((SolidColorBrush)Background).Color.Equals(Colors.Transparent)) << Null Reference Exception here!
Background.Color is null. In fact - the entire Background object is empty, as if a SolidColorBrush was instantiated without having any values set.