- Home
- Forum
- Xamarin.Forms
- Picker Styling for Dark Mode
Picker Styling for Dark Mode
When Darkmode is on, I can alter the style of every element except the picker. I've tried creating custom renderers with no luck. Does anyone have an idea of what can be done to change the text color of the selected item in a picker? The picker text shows white on a black background, but the selected item is black and I can't change it.
SIGN IN To post a reply.
9 Replies
MS
Muniappan Subramanian
Syncfusion Team
March 24, 2020 08:25 AM UTC
Hi Tim Southard,
Thank you for contacting Syncfusion support.
We have checked your requirement of “Picker styling for Dark Mode” we regret that as of now DataForm doesn’t have support to customize picker item text color, but DataForm allows you to create a custom picker editor using DataFormEditor class. Using which create a new editor with required customizations.
Please refer our following KB document to know more about creating custom picker editor,
Date picker: https://www.syncfusion.com/kb/11199/how-to-add-sfdatepicker-to-xamarin-forms-dataform-sfdataform
Picker editor: https://www.syncfusion.com/kb/10347/how-to-add-custom-picker-editor-using-sfpicker-in-xamarin-forms-dataform
Please refer our UG document to know more about creating custom editors in DataForm,
We hope this helps. Please let if you if you have any concern.
Regards,
Muniappan S
TS
Tim Southard
March 24, 2020 02:22 PM UTC
Are there really no styles that can be overridden to accomplish this?
MS
Muniappan Subramanian
Syncfusion Team
March 25, 2020 11:55 AM UTC
Hi Tim Southard,
Thank you for the update.
Currently, we are analyzing your requirement “Picker styling in SfDataForm”. We will validate and update you the further details in two business days (March 27, 2020). We appreciate your patience until then.
Regards,
Muniappan S.
MS
Muniappan Subramanian
Syncfusion Team
March 27, 2020 11:04 AM UTC
Hi Tim Southard,
Thank you for your patience.
We are facing framework level issue while implementing your requirement “Picker styling in SfDataForm” and we have logged a framework issue on this. Kindly refer the following link to follow the query
Once we get solution for this from Xamarin Team we will implement your requirement. We appreciate your patience until then.
Regards,
Muniappan S.
SS
SaiGanesh Sakthivel
Syncfusion Team
April 7, 2020 10:44 AM UTC
Hi Tim,
We have fixed the reported issue “Picker Styling for DarkMode” and included the issue fix in our latest Weekly NuGet release update version 18.1.0.43 which is available for download (nuget.org).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.
Regards,
SaiGanesh Sakthivel
TS
Tim Southard
April 7, 2020 06:38 PM UTC
Thank you! Is this something that will automatically work or something that needs setup in code? If you could give a little more information on how to ensure the picker color can be adjusted for both light and dark mode I would appreciate it!
SS
SaiGanesh Sakthivel
Syncfusion Team
April 8, 2020 01:06 PM UTC
Hi Tim,
Thank you for the update.
#Regarding Picker color
It will automatically adjust according to the themes. We have prepared the workaround sample and attached in the following link for your reference.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DataFormXamarin-1644851928
We hope this helps. Please let us know if you need further assistance.
Regards,
SaiGanesh Sakthivel
TS
Tim Southard
April 8, 2020 01:10 PM UTC
This is excellent. Thank you!
MS
Muniappan Subramanian
Syncfusion Team
April 9, 2020 05:24 AM UTC
Hi Tim Southard,
Thank you for the update.
We are glad that our solution meets your requirement. Please let us know if you need any further update. As always, we are happy to help you out.
Regards,
Muniappan S.
SIGN IN To post a reply.
- 9 Replies
- 3 Participants
-
TS Tim Southard
- Mar 23, 2020 06:44 PM UTC
- Apr 9, 2020 05:24 AM UTC