Something equivalent to QueuedTask.Wait();

120
1
Jump to solution
02-21-2018 04:48 AM
Highlighted
Occasional Contributor

I'm trying to perform an operation on a MapView.Active after it has been created with CreateMapPaneAsync, but all waiting, awaiting, timing methods I've used fail to coordinate the operations.  Is there a structure I can use to perform my operation on the MapView.Active only after CreateMapPaneAsync is complete?

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Occasional Contributor

A method to (1) check for MapView.Active, (2) CreateMapPaneAsync if no mapPane exists; which allows to perform operation after CreateMapPaneAsync is complete:

method: (sol1.jpg)

implement: (sol2.jpg)

View solution in original post

Reply
0 Kudos
1 Reply
Highlighted
Occasional Contributor

A method to (1) check for MapView.Active, (2) CreateMapPaneAsync if no mapPane exists; which allows to perform operation after CreateMapPaneAsync is complete:

method: (sol1.jpg)

implement: (sol2.jpg)

View solution in original post

Reply
0 Kudos