Hi,
I've made a very simple, custom map tool that selects features with a rectangle sketch outline (it's basically 'Select by Rectangle' tool). I made my own tool instead of using Esri's DAML ID for the select by rectangle tool because I want to have my own functionality for OnMouseUp.
I know how to make this tool and access it in the Pro Add-in ribbon tab. However, how would I be able to use my tool's functionality in my own button on my own dockpane?
I've tried looking at the Config.daml for my custom tool's button id, so that i could do something like this:
FrameworkApplication.SetCurrentToolAsync("my_custom_tool_id");
However I couldn't get it to work. Am I on the right path?
Thank you.
Hi Khamille,
Try to look at this link:
Hi Khamille,
In addition to the link Gintautas has shared with you, here is a wiki link that walks you through using ICommands as "bindings" on your dockpane using the MVVM pattern. Your custom tool can be used with this also.
ProGuide: Reusing Pro Commands
Thanks
Uma