I have a custom resources.dll file that contains both Images and DarkImages. When i reference and use images from this dll, it appears to only use the light themed images from the Images folder and ignores the DarkImages. Does anyone know what needs to be done to make use of both image versions?
dll is referenced following this:
Thanks,
Jon
Hi,
You need to create dark and light themes as in Esri ArcGIS Pro community sample
Another way is to check what theme is loaded in ArcGIS Pro and load different resource dll depending on theme.
https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic10163.html
You ask about things that are not part of ArcGIS Pro. It is WPF part. You need to create different resource dictionaries for each theme. Each theme dictionary must contain images for current theme
https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-theme-resources
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="myBrush" Color="{StaticResource ControlFillColorDefault}"/>
<BitmapImage x:Key="Connected" UriSource="/Image/connected.png"/>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="myBrush" Color="{StaticResource ControlFillColorDefault}"/>
<BitmapImage x:Key="Connected" UriSource="/DarkImage/connected.png"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>