SfPicker SelectedBackgroundColor Not Showing

I am trying to use the SelectionBackgroundColor property on the SfPicker to add a border to the selected item, but it is only adding a single line instead of two. I am using SfPicker 19.4.0.38



Here is my code :


<picker:SfPicker x:Name="picker"

                        Grid.Row="1"

                        HorizontalOptions="Fill"

                       ItemsSource="{Binding Items}"

                        SelectedItemFontSize="20"

                        UnSelectedItemFontSize="15"

                        ShowHeader="False"

                        DisplayMemberPath="DisplayText"

                        SelectedIndex="{Binding SelectedItemIndex}"

                        SelectionChanged="picker_SelectionChanged"

                        SelectedItemTextColor="{StaticResource Accent}"

                        UnSelectedItemTextColor="{StaticResource DarkText}"

                        AutomationId="Scroll wheel"

                        SelectionBackgroundColor="Black"

                        BorderColor="Transparent">

</picker:SfPicker>




3 Replies

SS Suganya Sethuraman Syncfusion Team December 21, 2021 01:21 PM UTC

Hi Scott,

We have prepared a sample using provided code snippet. We have checked the reported issue in SfPicker Xamarin.Forms Android, but we were not able to reproduce the issue.

Please find the sample and screenshot for your reference,

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/xamarin-forms-sfpicker-main900169049

Screenshot


We request you to check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide the sample and also provide platform specifications and device specifications. It will help us to provide better solution at the earliest.

Regards,
Suganya Sethuraman.
 



SL Scott Love December 21, 2021 10:30 PM UTC

I think I was able to fix the issue by simply resetting the phone. Thank you for your help!



SS Suganya Sethuraman Syncfusion Team December 22, 2021 06:53 AM UTC

Hi Scott,

Thanks for the update.

We are glad that your issue is resolved. Please let us know if you require any further assistance.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon