Default DatePicker style for dark mode compatability

347
1
07-24-2020 11:36 AM
DanielL
New Contributor II

Is there a default dynamic resource I can set on a DatePicker so it styles correctly in dark mode?  For example, I can use this for a TextBlock and it automatically changes to dark mode styling in dark mode:

Style="{DynamicResource RegularText}"

Is there something similar for a DatePicker?

0 Kudos
1 Reply
GintautasKmieliauskas
Regular Contributor

Hi Daniel,

Set background and foreground of DatePicker to esri colors:

Background="{DynamicResource Esri_TextStyleDisabledBrush}"  Foreground="{DynamicResource Esri_TextSelectionHighlightBrush}"

I copied code from my progress dialog, but you can find right values here:

http://esri.github.io/arcgis-pro-sdk/content/brushescolors/brushes.html