AnsweredAssumed Answered

How do I activate/deactivate a MapTool?

Question asked by htudosieesri-ca-esridist Employee on Jul 12, 2016
Latest reply on Jul 12, 2016 by cmacleod-esristaff

While the help at ArcGIS Pro 1.3 API Reference Guide talks about a Tool or a Button, there is no topic on MapTool.

I have inherited the code from Community Samples, but there are no clue how to activate or mostly to deactivate the tool on OnSketchCompleteAsync or - better - when clicking the tool button again.

I can switch the tool appearance with IsChecked = false on OnSketchCompleteAsync, but - beside the fact that the tool button becomes not checked - the tool continue to be active on the page!

MapTool seems to be part of ArcGIS.Desktop.Mapping namespace, but neither this part of the SDK Help talks about it...

 

(ArcGis Pro 1.3)

Outcomes