How to Load ArcGisPro SDK resources into a WPF app?

09-11-2020 01:04 AM
New Contributor II

I have an ArcGisPro Add-in using the SDK. As per the style guide, the UI controls use  ESRI colours, brushes and ProWindow instead of System.Window.

The Add-in is a DLL which is loaded into ArcGIS Pro.

I also have a Test Harness which is plain WPF Application that also loads the DLL and performs tests on it. This avoids the slow startup for ArcGis on my machine ( Can this be avoided by reloading the add-in?). It can test the UI without interacting with ESRI components likes Maps, Projects etc.

If I use ESRI resources in the add in, then the WPF Test Application can't see them and I get a compile error.

Error XDG0008 The name "DesignOnlyResourceDictionary" does not exist in the namespace "clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions".

My questions is how can the WPF App load the ArcGIS.Desktop.Extensions? 

0 Kudos
0 Replies