AnsweredAssumed Answered

Button Initialization and asynchronous methods - avoiding deadlocks

Question asked by david.lamartina_NCS on Oct 12, 2020

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?

Outcomes