Want to access the X Y of the mouse cursor programmatically to to access inside of a button controls onClick.
I want to be able to access the values circled in red (Screntshot) from an Add-In button control
Have you been able to figure this out? I've been trying to figure this out and still unsure
Daniel, take a look at this sample. It basically does what u want:
https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/MapToolWithOverlayControl
Money lines are here:
https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/MapToolWithOverlayControl/ShowCoordinatesTool.cs#L60-L61
(ps, this is a MapTool not a Button. There is no callback for a button)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.