Color is lost if using dynamicresource from a trigger and scrolling in SfListView

We have an SfListView and inside of that is a label:

<code>
            <Label
                FontFamily="{StaticResource MercuryFontFamily}"
                Text="{Binding CurrentConversationStatus, Converter={StaticResource statusIconFromConversationStatus}}"
                VerticalTextAlignment="Center" HorizontalOptions="Center"
                FontSize="Large">

                <Label.Triggers>

                    <DataTrigger Binding="{Binding IsOverDue}" Value="False" TargetType="Label">
                        <Setter Property="TextColor" Value="{DynamicResource TextColor}" />
                    </DataTrigger>

                    <DataTrigger Binding="{Binding IsOverDue}" Value="True" TargetType="Label">
                        <Setter Property="TextColor" Value="{DynamicResource ErrorColor}" />
                    </DataTrigger>

                </Label.Triggers>

            </Label>
</code>

If you scroll quickly up and down through the SfListView the label will lose the color of the label. Changing to a StaticResource fixes this, but that doesn't play well with our theming.

1 Reply 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team June 30, 2020 06:06 PM UTC

Hi Brad,  
 
Thank you for contacting support syncfusion.  
   
We have analyzed the reported issue “Color is lost if using dynamicresource from a trigger and scrolling in SfListView” and we found that issue occurs with Xamarin framework. We have logged an issue report for the same with Xamarin.  
 
You can check the same by the following link,

Link:
https://github.com/xamarin/Xamarin.Forms/issues/9110 
  
We are having following the reported bug, once we got the solution from the Xamarin team, we will update you the further details. We appreciate your patience until then.  
   
Regards,
SaiGanesh Sakthivel
 

Marked as answer
Loader.
Up arrow icon