ArcGIS Pro SDK 2.6, XAML
I'm upgrading a dialog displayed by my add-in to recognize light and dark themes. I'm following the standard community sample. I have the standard Themes, Images, and DarkImages folders. The contents of the image folders are set the Resource build action and to no copy.
In LightResources.xaml I have inserted:
<BitmapImage
x:Key="TerraGoLogo"
UriSource="../../../Images/terrago_logo.png"/>
I have also tried:
<BitmapImage
x:Key="TerraGoLogo"
UriSource="pack://application:,,,/publisher-arcgispro;component/Resources/Images/terrago_logo.png"/>
In my dialog XAML I have inserted:
<Image HorizontalAlignment="Center"
Height="76"
VerticalAlignment="Top"
Width="358"
Margin="0,10,0,5"
Source="{DynamicResource TerraGoLogo}"/>
The dialog XAML worked before I replaced a string literal path with the DynamicResource. The path used in the first attempt is the same the original path, the relative path from the XAML file. I've also tried the path relative to the project file.
Now the logo does not display at runtime.
TIA for any help.