Button Initialization and asynchronous methods - avoiding deadlocks

10-12-2020 01:52 PM
New Contributor III

When instantiating an ArcGIS Pro dockpane, the base class's virtual InitializeAsync() method makes it possible to use asynchronous methods in the pane's instantiation. There are several places in our code where we override this method in our dockpane view models (and call asynchronous methods), and they works just as expected.

I'm dealing with a case where I need to do the same thing with a Arc Pro button, but the Button class and its parent classes don't include an InitializeAsync() method. Is there a roughly equivalent solution?

0 Kudos
0 Replies