Select to view content in your preferred language

Button Initialization and asynchronous methods - avoiding deadlocks

609
0
10-12-2020 01:52 PM
DavidLaMartina
Regular Contributor

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