Select to view content in your preferred language

Focus on pane deactivates and activates current tool

265
3
07-16-2024 07:45 AM
DirkTillmanns
Occasional Contributor

Hallo,

We have implemented a pane that derives from "TOCMapPaneProviderPane". Any tool is activated in the active map. E.g. "Create a line". As soon as the pane receives focus, the active tool is briefly deactivated and immediately reactivated. The currently active editing will be lost.

This is fatal and makes the pane unusable.

It doesn't seem to be due to our implementation. In the pro user "samples" there is a "TOCMapPaneProviderPane" implementation for which this behavior can also be reproduced.

Any ideas?

Best regards, Dirk

DirkTillmanns_1-1721141093975.png

 

 

 

 

0 Kudos
3 Replies
UmaHarano
Esri Regular Contributor

@DirkTillmanns 

I tried this with the "ImpersonateMapPane" community sample.

  • I started an active editing session for a line feature class in my active map view.
  • I then activated my new Map pane in the middle of the editing session.
  • When I went back to my original Mapview, I was able to restart my editing session. I did not see the tool being deactivated\reactivated.

Is this similar to your workflow? Just confirming to see what I am missing in order to repro your issue.

Thanks

Uma

 

 

0 Kudos
DirkTillmanns
Occasional Contributor

@UmaHarano 

If you have a CustomTool active and set breakpoints on "OnToolActivateAsync, OnToolDeactivateAsync" and then activate the "Impersonate Map", you can observe the deactivation and activation.

Thanks

Dirk

DirkTillmanns_0-1721980043892.png

DirkTillmanns_1-1721980122041.png

 

 

0 Kudos
UmaHarano
Esri Regular Contributor

@DirkTillmanns 

Thanks for the detailed steps. I see the issue now. The development team is investigating this one. I will post back when I have an update.

0 Kudos