Select to view content in your preferred language

Unable to add ArcGIS Pro icons to Dockpane

375
1
10-12-2022 01:34 PM
KenBuja
MVP Esteemed Contributor

I am rebuilding a 2.9 add-in in 3.0. In my Dockpane, I have a button where I would like show the icon FolderOpenState16.png. The code that worked in 2.9 throws an error in 3.0

<Button x:Name="OpenButton" Grid.Column="2" BorderBrush="Transparent" HorizontalAlignment="Right" VerticalAlignment="Center" Width="30" Background="{x:Null}" DockPanel.Dock="Right" Style="{DynamicResource Esri_Button}"
        Command="{Binding OpenBrowseDialog}"
        CommandParameter="OpenButton">
  <Image Source="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/FolderOpenState16.png" HorizontalAlignment="Left" Height="16" VerticalAlignment="Top" Width="16" ToolTip="Browse"/>
</Button>

I'm getting the error for the Image Source: "Could not load file or assembly 'ArcGIS.Desktop.Resources, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified."

That assembly does exist in my project, so why is this error occurring?

0 Kudos
1 Reply
MohammedAhmed
New Contributor

Unable to download ArcGIS Pro 3.0 though my computer meets requirements 

0 Kudos